20 lines
494 B
Makefile
20 lines
494 B
Makefile
# ---------------------------------------------------
|
|
# May be we have to put those objs in a .a ?
|
|
|
|
OPT = -Wall -DDEBUG_LEVEL=1
|
|
OBJS = serial.o funcs.o
|
|
# ---------------------------------------------------
|
|
|
|
serial.o: serial.c serial.h Makefile
|
|
gcc ${OPT} -c $<
|
|
|
|
funcs.o: funcs.c serial.h Makefile
|
|
gcc ${OPT} -c $<
|
|
|
|
# ---------------------------------------------------
|
|
|
|
t: t.c Makefile ${OBJS}
|
|
gcc ${OPT} $< ${OBJS} -lncurses -o $@
|
|
|
|
# ---------------------------------------------------
|