X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FMakefile;h=1b567dbb17a9ec22925869e73bf850350c30bf7b;hb=0014e576011872ca7f9609362fa080fd29acbf5a;hp=22c80451f030401345c24fb7f65376a9ca70b32b;hpb=51804c822aba850ad3d1589b4dc3dc2709d980f5;p=my-code%2Fivac.git diff --git a/src/Makefile b/src/Makefile index 22c8045..1b567db 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,15 +3,23 @@ INCLUDEDIR = /usr/include CFLAGS = -DDISPLAY -DDEBUG -O3 -Wall -LIBS = +LIBS = -lncurses 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