summaryrefslogtreecommitdiffstats
path: root/http/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'http/Makefile')
-rw-r--r--http/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/http/Makefile b/http/Makefile
index 26224d4..cb05daf 100644
--- a/http/Makefile
+++ b/http/Makefile
@@ -55,8 +55,10 @@ CLOBBER_ADDITIONS +=
all: ${ARCH} $(SRCS) $(PGM)
${PGM}: $(OBJS) $(LINK_FILES)
- tar cf $(ARCH)/tarfile index.html
- $(LD) -r -o $(ARCH)/temp.o $(ARCH)/init.o -b binary $(ARCH)/tarfile
+ cd rootfs ; tar cf ../$(ARCH)/tarfile web etc
+ cp $(ARCH)/tarfile .
+ $(OBJCOPY) -I binary -O elf32-powerpc tarfile $(ARCH)/tarfile.o
+ $(LD) -r -o $(ARCH)/temp.o $(ARCH)/init.o $(ARCH)/tarfile.o
$(MV) $(ARCH)/temp.o $(ARCH)/init.o
$(RM) $(ARCH)/temp.o
$(make-exe)