DD2-monitor/serial/Makefile

20 řádky
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 $@
# ---------------------------------------------------