10 STRIP = strip --strip-all -R .comment -R .note
13 # zlib and libpng configuration flags
14 LIBFLAGS = -DDYNAMIC_CRC_TABLE -DPNG_NO_CONSOLE_IO \
15 -FPNG_NO_WRITE_SUPPORTED \
16 -DPNG_NO_MNG_FEATURES \
17 -DPNG_NO_READ_tIME -DPNG_NO_WRITE_tIME
19 # We need some features in libpng which apparently aren't available in the
20 # fixed-point versions. It's OK, because we have to have a non-graphical
21 # fallback anyway, just use that on old machines...
22 # LIBFLAGS += -DPNG_NO_FLOATING_POINT_SUPPORTED
24 REQFLAGS = -g -m32 -mregparm=3 -DREGPARM=3 -D__COM32__ -I. -I./sys -I../include
25 OPTFLAGS = -Os -march=i386 -falign-functions=0 -falign-jumps=0 \
26 -falign-labels=0 -ffast-math -fomit-frame-pointer
27 WARNFLAGS = -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline
29 CFLAGS = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d $(OPTFLAGS) \
30 $(REQFLAGS) $(WARNFLAGS) $(LIBFLAGS)
31 LDFLAGS = -m elf32_i386
33 .SUFFIXES: .c .o .a .so .lo .i .S .s .ls .ss .lss
35 % : %.c # Cancel default rule
40 $(CC) $(CFLAGS) -c -o $@ $<
43 $(CC) $(CFLAGS) -E -o $@ $<
46 $(CC) $(CFLAGS) -S -o $@ $<
49 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c -o $@ $<
52 $(CC) $(CFLAGS) -D__ASSEMBLY__ -E -o $@ $<
55 $(CC) $(CFLAGS) $(SOFLAGS) -D__ASSEMBLY__ -c -o $@ $<
58 $(CC) $(CFLAGS) $(SOFLAGS) -D__ASSEMBLY__ -E -o $@ $<
61 $(CC) $(CFLAGS) -x assembler -c -o $@ $<
64 $(CC) $(CFLAGS) $(SOFLAGS) -x assembler -c -o $@ $<
67 $(CC) $(CFLAGS) $(SOFLAGS) -c -o $@ $<
70 $(CC) $(CFLAGS) $(SOFLAGS) -S -o $@ $<