diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c4e6a73 --- /dev/null +++ b/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) + + |