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

all:	$(OBJS)

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 $@ $<