K2.6 patches and update.
[tomato.git] / release / src-rt / emf / igsconf / Makefile
blobaaf9b9abad1a837d02debafdbeb18bbc0b567ced
2 # $Id: Makefile 241182 2011-02-17 21:50:03Z gmo $
5 CROSS =
6 CC = $(CROSS)gcc
7 AR = $(CROSS)ar
8 STRIP = $(CROSS)strip
10 ALL_OBJS = igsu.o igsu_linux.o
12 CCFLAGS = -Os -Wall -I$(SRCBASE)/include -I$(TOP)/shared -I$(SRCBASE)/include/emf/igs $(EXTRACFLAGS)
14 ifneq ($(wildcard ./prebuilt),)
15 all:
16 -cp prebuilt/igs igs
17 else
18 all: igs
19 endif
21 igs: $(ALL_OBJS)
22 $(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $(ALL_OBJS) $(LDLIBS)
23 $(STRIP) $@
25 $(ALL_OBJS): %.o: %.c
26 @echo " "
27 @echo "Making $<"
28 $(CC) $(CCFLAGS) -c $<
30 install: all
31 install -d $(INSTALLDIR)/igs/usr/sbin
32 install -m 755 igs $(INSTALLDIR)/igs/usr/sbin
34 .PHONY: clean
35 clean:
36 -rm -f *.o *~ core igs