deleted api stuff, own cvs module now. found seg fault reason, fixed though till...
[my-code/ivac.git] / src / Makefile
index 0acc428..99d7e54 100644 (file)
@@ -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
+       $(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