X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=GNUmakefile;h=6e91ee824e7911ea1df630ad16c3e458dbe9e87a;hp=8b0f6fb2f264eaa865023950bf59c95ec3b222ce;hb=HEAD;hpb=7e9bdbed1a8cda290cf0ee8af914625f62df2b5e diff --git a/GNUmakefile b/GNUmakefile index 8b0f6fb..767026f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -8,15 +8,15 @@ bin = demo asmsrc += cspr/dbgfont.asm cspr/confont.asm bindata = data/loading.img -inc = -I/usr/local/include -Isrc -Isrc/3dgfx -Isrc/scr -Isrc/glut -Ilibs \ +inc = -I/usr/local/include -Isrc -Isrc/3dgfx -Isrc/scr -Isrc/utils -Isrc/glut -Ilibs \ -Ilibs/imago/src -Ilibs/mikmod/include def = -DMINIGLUT_USE_LIBC -DMIKMOD_STATIC -warn = -pedantic -Wall -Wno-unused-variable -Wno-unused-function +warn = -pedantic -Wall -Wno-unused-variable -Wno-unused-function -Wno-address #opt = -O3 -ffast-math dbg = -g -CFLAGS = $(arch) $(warn) -MMD $(opt) -fno-strict-aliasing $(dbg) $(inc) -LDFLAGS = $(arch) -Llibs/imago -Llibs/mikmod -limago -lmikmod \ +CFLAGS = $(arch) $(warn) -MMD $(opt) -fno-pie -fno-strict-aliasing $(dbg) $(inc) +LDFLAGS = $(arch) -no-pie -Llibs/imago -Llibs/mikmod -limago -lmikmod \ $(sndlib_$(sys)) -lm cpu ?= $(shell uname -m | sed 's/i.86/i386/') @@ -27,7 +27,7 @@ endif sys ?= $(shell uname -s | sed 's/MINGW.*/mingw/; s/IRIX.*/IRIX/') ifeq ($(sys), mingw) - obj = $(src:.c=.w32.o) + obj = $(src:.c=.w32.o) $(asmsrc:.asm=.w32.o) bin = demo_win32.exe @@ -52,6 +52,9 @@ $(bin): $(obj) imago mikmod %.o: %.asm nasm -f elf -o $@ $< +%.w32.o: %.asm + nasm -f coff -o $@ $< + %.w32.o: %.c $(CC) -o $@ $(CFLAGS) -c $<