summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a7d65f4c84c6a0c96061635fb9f2c5ad99ba1355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 *~ \#*