diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-12-30 17:19:47 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-12-30 17:19:47 -0800 |
commit | 7c7598e8ec789de6b49b5c848d239d77d8258e07 (patch) | |
tree | 1e83f3a53113c13bb2f5b05e39529f1231d0cab0 /Makefile | |
parent | 96a65558a1b5a7bd3c4061ad64b1670b5def3f3b (diff) | |
download | ipxrelay-7c7598e8ec789de6b49b5c848d239d77d8258e07.tar.gz ipxrelay-7c7598e8ec789de6b49b5c848d239d77d8258e07.tar.xz ipxrelay-7c7598e8ec789de6b49b5c848d239d77d8258e07.zip |
Add Makefile; call this version 0.1ipxrelay-0.1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
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 *~ \#* |