Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / diskimage / z_library / Makefile.ppc-aros
blob264f21fe728b47f3ae90fa166a0b20ef66a59aef
1 CROSS := powerpc-aros
2 CC := $(CROSS)-gcc
3 AS := $(CROSS)-as
4 RM := rm -f
5 CP := cp -p --remove-destination
7 CFLAGS := -fno-stack-protector -O3 -Wall -I../include -I../include/aros -Iinclude \
8         -DSTDC -DAMIGA -DDYNAMIC_CRC_TABLE
9 LINK := -nostartfiles
10 LIBS := -L../lib -lsupport
12 TARGET := z.library
13 VERSION := 1
14 OBJS := stub_ppc.o init.o malloc.o zutil.o deflate.o inflate.o inftrees.o \
15         inffast.o compress.o uncompr.o trees.o crc32.o adler32.o
16 RELEASEDIR := ../../release/ppc-aros/diskimage_device
18 # -------------------------------------------------------------
20 all: $(TARGET)
22 $(TARGET): $(OBJS) ../lib/libsupport.a
23         $(CC) $(LINK) -o $@ $(OBJS) $(LIBS)
25 init.o: $(TARGET)_rev.h
27 ../lib/libsupport.a:
28         $(MAKE) -C .. -f Makefile.ppc-aros lib/libsupport.a
30 install: all
31         $(CP) $(TARGET) LIBS:
33 dist: all
34         $(CP) $(TARGET) $(RELEASEDIR)/Libs/
36 clean:
37         $(RM) $(TARGET) $(OBJS)
39 revision:
40         bumprev $(VERSION) $(TARGET)