csci4061/lab01-code/lcd-clock/Makefile

27 lines
510 B
Makefile
Raw Normal View History

2018-01-29 23:28:37 +00:00
CFLAGS = -Wall -g
CC = gcc $(CFLAGS)
clock_sim: lcd_clock.o lcd_clock_main.o lcd_clock.h lcd_update.o
$(CC) -o clock_sim $^
@echo "clock_sim ready for duty"
lcd_clock.o: lcd_clock.c lcd_clock.h
$(CC) -c $<
lcd_clock_main.o: lcd_clock_main.c lcd_clock.h
$(CC) -c $<
lcd_update.o: lcd_update.c lcd_clock.h
$(CC) -c $<
test: clock_tests
@echo "Running clock_tests"
./clock_tests
@echo "Tests Complete"
clock_tests: lcd_tests.c lcd_clock.o lcd_update.o lcd_clock.h
$(CC) -o $@ $^
clean:
rm -f *.o