DD2-monitor/serial/Makefile

20 lines
494 B
Makefile
Raw Normal View History

2019-05-15 00:33:00 +11:00
# ---------------------------------------------------
# May be we have to put those objs in a .a ?
2018-12-13 02:06:18 +11:00
2019-05-19 03:01:05 +11:00
OPT = -Wall -DDEBUG_LEVEL=1
OBJS = serial.o funcs.o
2019-03-28 22:04:40 +11:00
# ---------------------------------------------------
2018-12-13 02:06:18 +11:00
serial.o: serial.c serial.h Makefile
2018-12-13 06:07:49 +11:00
gcc ${OPT} -c $<
2018-12-13 02:06:18 +11:00
funcs.o: funcs.c serial.h Makefile
gcc ${OPT} -c $<
2019-03-28 22:04:40 +11:00
# ---------------------------------------------------
t: t.c Makefile ${OBJS}
2019-05-19 03:01:05 +11:00
gcc ${OPT} $< ${OBJS} -lncurses -o $@
2018-12-13 02:06:18 +11:00
2019-05-19 03:01:05 +11:00
# ---------------------------------------------------