blob: 0fb658866923de05d0b30a2bf0ae8d534d0a1486 (
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
|
OBJS=ifenslave-1.0.11 ifenslave-1.0.12 ifenslave-1.1.0 ifenslave
include ../include/rules.make
CC := $(CC_ORIG)
CFLAGS+=-Wstrict-prototypes
CFLAGS+=-D__uint32_t=uint32_t -D__uint16_t=uint16_t -D__uint8_t=uint8_t -Dcaddr_t=char*
#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%: ifenslave%.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 $@ $<
|