summaryrefslogtreecommitdiff
path: root/env/Makefile
blob: 9158beef49bb88d2dbf110fb8cd86f9adbef202e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
	$(ROMFSINST) -s fw_env /bin/fw_getenv

clean:
	-rm -f *.o fw_env *.gdb

.PHONY: all fw_env clean romfs