X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2FMakefile;h=1b567dbb17a9ec22925869e73bf850350c30bf7b;hp=0acc428d15a4c742062807a1b81964971d5ff90f;hb=0014e576011872ca7f9609362fa080fd29acbf5a;hpb=c8c162c2b1f82f32160bcaa4159ea8735a8582c5 diff --git a/src/Makefile b/src/Makefile index 0acc428..1b567db 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,16 +2,24 @@ INCLUDEDIR = /usr/include -CFLAGS = -DDEBUG -O3 -Wall -LIBS = +CFLAGS = -DDISPLAY -DDEBUG -O3 -Wall +LIBS = -lncurses -OBJS = network.o event.o input.o +OBJS = network.o event.o input.o display.o audio.o -ivac: $(OBJS) - $(CC) -o $@ $(OBJS) ivac.c $(LIBS) -all: ivac +ivac: links $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) ivac.c $(LIBS) +all: links ivac clean: rm -f $(OBJS) ivac +links: + ln -sf ../../api/event/event.{c,h} . + ln -sf ../../api/input/input.{c,h} . + ln -sf ../../api/display/display.{c,h} . + ln -sf ../../api/audio/audio.{c,h} . + ln -sf ../../api/network/network.{c,h} . + ln -sf ../../api/list/list.{c,h} . + remake: clean all