Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / diskimage / expat_library / Makefile.ppc-aros
blobbbd419f0fd208e00271ad696709a42046bd08b3b
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 LINK := -nostartfiles
9 LIBS := -L../lib -lsupport
11 TARGET := expat.library
12 VERSION := 4
13 OBJS := stub_ppc.o init.o malloc.o xmlparse.o xmlrole.o xmltok.o
14 RELEASEDIR := ../../release/ppc-aros/diskimage_device
16 # -------------------------------------------------------------
18 all: $(TARGET)
20 $(TARGET): $(OBJS) ../lib/libsupport.a
21         $(CC) $(LINK) -o $@ $(OBJS) $(LIBS)
23 init.o: $(TARGET)_rev.h
25 ../lib/libsupport.a:
26         $(MAKE) -C .. -f Makefile.ppc-aros lib/libsupport.a
28 install: all
29         $(CP) $(TARGET) LIBS:
31 dist: all
32         $(CP) $(TARGET) $(RELEASEDIR)/Libs/
34 clean:
35         $(RM) $(TARGET) $(OBJS)
37 revision:
38         bumprev $(VERSION) $(TARGET)