aboutsummaryrefslogtreecommitdiff
path: root/ifenslave/Makefile
blob: 6d6aa6c3fde4638c40b70f96e2a527a36bf85a08 (plain) (blame)
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
31
32
OBJS=ifenslave-1.0.11 ifenslave-1.0.12 ifenslave
# include ../../include/rules.make
include ../include/rules.make
CC := $(CC_ORIG)
CFLAGS+=-Wstrict-prototypes -I/usr/src/linux/include
#CFLAGS+=-Wstrict-prototypes -I/usr/src/linux/include -momit-leaf-frame-pointer

all:	$(OBJS)

clean:
	rm -vf $(OBJS) core *.[oa] *~

ifenslave:
	rm -f ifenslave
	ln -s ifenslave-1.0.12 ifenslave

ifenslave-1.0.11: ifenslave-1.0.11.o
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
	$(STRIP) -x --strip-unneeded -R .comment -R .note $@
	$(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true
	# sstrip $@

ifenslave-1.0.12: ifenslave-1.0.12.o
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
	$(STRIP) -x --strip-unneeded -R .comment -R .note $@
	$(OBJDUMP) -h $@ | grep -q '\.data[ ]*00000000' && $(STRIP) -R .data $@ || true
	# sstrip $@


%.o:	%.c
	$(CC) $(CFLAGS) -c -o $@ $<