aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile
index d63f55c..5ed5fc3 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -15,17 +15,26 @@
# copyright notice regarding this software
#
+CC=gcc
+
TARGETS = spy send
+SRC_ADA = spy.adb send.adb
+SRC_C = ivy_ada.c
+OBJ = ${SRC_C:.c=.o}
+
+LDFLAGS= -livy -lpcre
+CCFLAGS= -O2 -Wall -Wshadow
-all: commands
+all: $(TARGETS)
-commands: $(TARGETS)
+%.o: %.c
+ $(CC) -c -o $@ $< $(CCFLAGS)
-spy:
- gnatmake spy.adb -largs -livy
+spy : ${OBJ}
+ gnatmake $@ -largs $^ ${LDFLAGS}
-send:
- gnatmake send.adb -largs -livy
+send : ${OBJ}
+ gnatmake $@ -largs $^ ${LDFLAGS}
clean:
-rm -f $(TARGETS) *.o *.ali *~