1include ../../common.mak
2
3#
4# $Id: Makefile 241182 2011-02-17 21:50:03Z $
5#
6
7CROSS =
8CC = $(CROSS)gcc
9AR = $(CROSS)ar
10STRIP = $(CROSS)strip
11
12ALL_OBJS = igsu.o igsu_linux.o
13
14CCFLAGS = -Os -Wall -I$(SRCBASE)/include -I../../shared -I$(SRCBASE)/include/emf/igs
15
16ifeq ($(wildcard ./*.c),)
17all:
18	-cp prebuilt/igs igs
19else
20all: igs
21endif
22
23igs: $(ALL_OBJS)
24	$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $(ALL_OBJS) $(LDLIBS)
25	$(STRIP) $@
26
27$(ALL_OBJS): %.o: %.c
28	@echo " "
29	@echo "Making $<"
30	$(CC) $(CCFLAGS) -c $<
31
32install: all
33	install -d $(INSTALLDIR)/igs/usr/sbin
34	install -m 755 igs $(INSTALLDIR)/igs/usr/sbin
35
36.PHONY:	clean
37clean:
38	-rm -f *.o *~ core igs
39