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-01-01 03:19:52 +11:00
|
|
|
OPT = -Wall -DDEBUG_LEVEL=0
|
2019-03-28 22:04:40 +11:00
|
|
|
OBJS = serial.o funcs.o
|
|
|
|
# ---------------------------------------------------
|
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
|
|
|
|
2018-12-30 03:07:23 +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}
|
|
|
|
gcc ${OPT} $< ${OBJS} -o $@
|
2018-12-13 02:06:18 +11:00
|
|
|
|