www.usr.com/support/gpl/USR9108_release1.3.tar.gz
[bcm963xx.git] / userapps / opensource / reaim / Makefile
1 #
2 # Simple build file for now
3 #
4 # License:  GNU General Public License, Version 2.
5 #
6 CFLAGS= -Os -fomit-frame-pointer
7 LDFLAGS= -Wall -Wl,-allow-shlib-undefined
8 ifeq ($(strip $(BUILD_REAIM)), static)
9 CFLAGS += -DBUILD_STATIC
10 endif
11
12 ifeq ($(strip $(BUILD_REAIM)), debug)
13 CFLAGS += -g -static
14 else
15 CFLAGS += -s
16 endif
17
18 all: reaim
19
20 ifdef NetBSD
21 FW_FLAGS="-DUSE_IPF"
22 endif
23
24 install:
25         install -m 755 reaim $(INSTALL_DIR)/bin
26         $(STRIP) $(INSTALL_DIR)/bin/reaim
27
28 dynamic: reaim install
29
30 debug: reaim install
31
32 static: reaim.a
33
34 reaim: reaim.c
35         $(CC) $(CFLAGS) $(LDFLAGS) -o reaim reaim.c $(FW_FLAGS)
36
37 reaim.a: reaim.c
38         $(CC) $(CFLAGS) -c -o reaim.o reaim.c $(FW_FLAGS)
39         $(AR) rcs reaim.a  reaim.o
40
41 clean:
42         -rm -f reaim reaim.o reaim.a