summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-12-31 01:19:47 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2010-12-31 01:19:47 (GMT)
commit7c7598e8ec789de6b49b5c848d239d77d8258e07 (patch)
tree1e83f3a53113c13bb2f5b05e39529f1231d0cab0
parent96a65558a1b5a7bd3c4061ad64b1670b5def3f3b (diff)
downloadipxrelay-7c7598e8ec789de6b49b5c848d239d77d8258e07.zip
ipxrelay-7c7598e8ec789de6b49b5c848d239d77d8258e07.tar.gz
ipxrelay-7c7598e8ec789de6b49b5c848d239d77d8258e07.tar.bz2
ipxrelay-7c7598e8ec789de6b49b5c848d239d77d8258e07.tar.xz
Add Makefile; call this version 0.1ipxrelay-0.1
-rw-r--r--Makefile30
-rw-r--r--ipxrelay.c2
2 files changed, 31 insertions, 1 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a7d65f4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+CC = gcc
+CWARN = -W -Wall
+COPT = -g -O2
+CREQ =
+CFLAGS = $(CWARN) $(COPT) $(CREQ)
+LDFLAGS =
+
+.SUFFIXES: .c .o .S .s .i
+
+.c.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
+.c.s:
+ $(CC) $(CFLAGS) -S -o $@ $<
+.c.i:
+ $(CC) $(CFLAGS) -E -o $@ $<
+.S.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
+.S.s:
+ $(CC) $(CFLAGS) -E -o $@ $<
+
+all: ipxrelay
+
+ipxrelay: ipxrelay.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
+clean:
+ rm -f ipxrelay *.o
+
+spotless: clean
+ rm -f *~ \#*
diff --git a/ipxrelay.c b/ipxrelay.c
index 9467bed..b7c99a1 100644
--- a/ipxrelay.c
+++ b/ipxrelay.c
@@ -17,7 +17,7 @@
#include <netinet/in.h>
#include <netdb.h>
-#define VERSION_STRING "0.0"
+#define VERSION_STRING "0.1"
const char *_progname;