csci4061/lab01-code/lcd-clock/Makefile
Michael Zhang 041f660ccd
f
2018-01-29 17:28:37 -06:00

26 lines
510 B
Makefile

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