EXEC = discard OBJS = discard.o EXEC1 = inetd-echo OBJS1 = inetd-echo.o ifeq ($(CONFIG_USER_DISCARD_NO_INSTALL), y) ROMFSINST_DISCARD=true else ROMFSINST_DISCARD=$(ROMFSINST) endif export ROMFSINST_DISCARD ifeq ($(CONFIG_USER_DISCARD_ECHO_NO_INSTALL), y) ROMFSINST_ECHO=true else ROMFSINST_ECHO=$(ROMFSINST) endif export ROMFSINST_ECHO all: $(EXEC) $(EXEC1) $(EXEC): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS) $(EXEC1): $(OBJS1) $(CC) $(LDFLAGS) -o $@ $(OBJS1) $(LDLIBS) romfs: $(ROMFSINST) -e CONFIG_USER_DISCARD_DISCARD /bin/$(EXEC) $(ROMFSINST_DISCARD) -e CONFIG_USER_DISCARD_DISCARD \ -a "discard dgram udp wait root /bin/discard" /etc/inetd.conf $(ROMFSINST_DISCARD) -e CONFIG_USER_DISCARD_DISCARD \ -a "discard stream tcp nowait root /bin/discard" /etc/inetd.conf $(ROMFSINST) -e CONFIG_USER_DISCARD_INETD_ECHO /bin/$(EXEC1) $(ROMFSINST_ECHO) -e CONFIG_USER_DISCARD_INETD_ECHO \ -a "echo dgram udp wait root /bin/inetd-echo" /etc/inetd.conf $(ROMFSINST_ECHO) -e CONFIG_USER_DISCARD_INETD_ECHO \ -a "echo stream tcp nowait root /bin/inetd-echo" /etc/inetd.conf clean: -rm -f $(EXEC) *.elf *.gdb *.o