aboutsummaryrefslogtreecommitdiff
path: root/ifenslave/Makefile
blob: e90f13fc37b58e501fa5342bcd8b2b0a7fc9f3ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
OBJS=ifenslave
# include ../../include/rules.make
CC=gcc
CFLAGS+=-Wstrict-prototypes -I/usr/src/linux/include -momit-leaf-frame-pointer

all:	$(OBJS)

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

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

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