37 lines
661 B
Makefile
37 lines
661 B
Makefile
# --------------- ***
|
|
|
|
COPT = -Wall -g -fpic -DTRACE=0
|
|
OBJS = ecran.o 7segments.o waterfall.o vumetre.o \
|
|
minidigits.o
|
|
|
|
ALIB = ../libdd2m-viz.a
|
|
|
|
# --------------- ***
|
|
|
|
${ALIB}: ${OBJS}
|
|
ar r $@ $?
|
|
|
|
# --------------- ***
|
|
|
|
ecran.o: ecran.c Makefile ecran.h
|
|
gcc $(COPT) -c $<
|
|
|
|
7segments.o: 7segments.c Makefile ecran.h
|
|
gcc $(COPT) -c $<
|
|
|
|
waterfall.o: waterfall.c Makefile ecran.h
|
|
gcc $(COPT) -c $<
|
|
|
|
vumetre.o: vumetre.c Makefile ecran.h
|
|
gcc $(COPT) -c $<
|
|
|
|
minidigits.o: minidigits.c Makefile ecran.h
|
|
gcc $(COPT) -c $<
|
|
|
|
# --------------- ***
|
|
|
|
t: t.c Makefile $(ALIB) ecran.h
|
|
gcc $(COPT) $< $(ALIB) -lncurses -o $@
|
|
|
|
# --------------- ***
|