summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 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 *~ \#*