summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..c4e6a73
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,27 @@
+XTINC =
+CC=gcc
+OBJ = timer.o socket.o bus.o
+GOBJ = timer.o socket.o gbus.o
+XTOBJ = timer.o xtsocket.o bus.o
+
+all: libbus.a libgbus.a libxtbus.a testbus
+
+gbus.o: bus.c
+ $(CC) -DGNU_REGEXP -c $(CFLAGS) -o gbus.o bus.c
+
+xtsocket.o: socket.c
+ $(CC) -DXTMAINLOOP $(XTINC) -c $(CFLAGS) -o xtsocket.o socket.c
+
+testbus: testbus.o $(OBJ)
+ $(CC) -o testbus testbus.o $(OBJ)
+
+libbus.a: $(OBJ)
+ ar q libbus.a $(OBJ)
+
+libgbus.a: $(GOBJ)
+ ar q libgbus.a $(GOBJ)
+
+libxtbus.a: $(XTOBJ)
+ ar q libxtbus.a $(XTOBJ)
+
+