summaryrefslogtreecommitdiff
path: root/env/Makefile
blob: 2004a39bf1216d2d13c972a951f8bb26425bc34c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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