aboutsummaryrefslogblamecommitdiff
path: root/ifenslave/Makefile
blob: 40e94af91611b26bc310cab94f51ac34b170f782 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                
                                  




                                                                              


                                     



                                        
                                    




                                                                                 






                                                                                 


                                   
OBJS=ifenslave-1.0.11 ifenslave-1.0.12 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:
	rm -f ifenslave
	ln -s ifenslave-1.0.12 ifenslave

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


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