* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-0.99 / zBoot / Makefile
blobf4fc25b9092dbde53e795f7c22e57170de3d5060
2 HEAD = head.o
3 SYSTEM = ../tools/zSystem
4 #LD = gcc
5 #TEST = -DTEST_DRIVER
7 zOBJECTS = $(HEAD) inflate.o unzip.o misc.o
9 CFLAGS = -O6 -DSTDC_HEADERS $(TEST)
11 .c.s:
12 $(CC) $(CFLAGS) -S -o $*.s $<
13 .s.o:
14 $(AS) -c -o $*.o $<
15 .c.o:
16 $(CC) $(CFLAGS) -c -o $*.o $<
18 all: zSystem
20 zSystem: piggy.o $(zOBJECTS)
21 $(LD) $(LDFLAGS) -o zSystem -T 1000 $(zOBJECTS) piggy.o
23 head.o: head.s
25 head.s: head.S ../include/linux/tasks.h
26 $(CPP) -traditional head.S -o head.s
28 piggy.o: $(SYSTEM) xtract piggyback
29 ./xtract $(SYSTEM) | gzip -9 | ./piggyback > piggy.o
31 $(SYSTEM):
32 $(MAKE) -C .. tools/zSystem