X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=libs%2Fimago%2FGNUmakefile;h=542d91f131d256e2ebb1318a9ae64814e292e896;hp=beba77c7dd7e91bcc00a22747778427cececf25e;hb=dc88088aa075f2269860b89433ccf5736dab1244;hpb=cdbe434bf280e1b0b22d800c3383239842d96be2 diff --git a/libs/imago/GNUmakefile b/libs/imago/GNUmakefile index beba77c..542d91f 100644 --- a/libs/imago/GNUmakefile +++ b/libs/imago/GNUmakefile @@ -5,11 +5,16 @@ src = $(wildcard src/*.c) \ obj = $(src:.c=.o) alib = libimago.a -CFLAGS = -pedantic -Wall -Wno-main -g -Izlib -Ilibpng -Ijpeglib +CC = gcc +CFLAGS = $(arch) -fno-pie -Wno-main -g -O3 -Izlib -Ilibpng -Ijpeglib + +ifeq ($(shell uname -m), x86_64) + arch = -m32 +endif $(alib): $(obj) $(AR) rcs $@ $(obj) .PHONY: clean clean: - rm -f $(obj) $(bin) + rm -f $(obj) $(alib)