#
# Simple build file for now
#
# License:  GNU General Public License, Version 2.
#
CFLAGS= -Wl,-allow-shlib-undefined -s -Os -fomit-frame-pointer

all: reaim

install:
	install -m 755 reaim $(INSTALL_DIR)/bin
	$(STRIP) $(INSTALL_DIR)/bin/reaim

dynamic: reaim install

static: reaim.a

reaim: reaim.c
	$(CC) $(CFLAGS) -o reaim reaim.c

reaim.a: reaim.c
	$(CC) $(CFLAGS) -c -o reaim.o reaim.c
	$(AR) rcs reaim.a  reaim.o

clean:
	-rm -f reaim reaim.o reaim.a

release : 
	install -o root -g root -m 755 reaim $(ROOT_FS_DIR)/bin
	install -o root -g root -m 755 aim_fwll.start aim_fwll.stop $(ROOT_FS_DIR)/usr/sbin
