summaryrefslogtreecommitdiff
path: root/env/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'env/Makefile')
-rw-r--r--env/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/env/Makefile b/env/Makefile
new file mode 100644
index 0000000..2004a39
--- /dev/null
+++ b/env/Makefile
@@ -0,0 +1,20 @@
+EXEC = fw_env
+OBJS = crc32.o fw_env.o fw_env_main.o
+
+CPPFLAGS += -DUSE_HOSTCC
+
+all: $(EXEC)
+
+$(EXEC): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(LDLIBS)
+
+romfs:
+ $(ROMFSINST) -d /bin/fw_env
+ test -e $(ROMFSDIR)/etc/fw_env.config || $(ROMFSINST) -d /etc/fw_env.config
+ $(ROMFSINST) -s fw_env /bin/fw_printenv
+ $(ROMFSINST) -s fw_env /bin/fw_setenv
+
+clean:
+ -rm -f *.o fw_env *.gdb
+
+.PHONY: all fw_env clean romfs