diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2014-06-01 23:49:53 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2014-06-01 23:49:53 +0200 |
commit | 499414520fb55d1ef5ec16eba9eb1b3f7ee2e19a (patch) | |
tree | d6c535cc7fc56894142253398756c3016c1b04e4 /test/Makefile | |
parent | 8cbe61ccd8e02d5fbdb7ccbe1ebaa1d01af63dc3 (diff) | |
download | wglarb-499414520fb55d1ef5ec16eba9eb1b3f7ee2e19a.tar.gz wglarb-499414520fb55d1ef5ec16eba9eb1b3f7ee2e19a.tar.bz2 |
static scope for compilation unit private functions
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/test/Makefile b/test/Makefile index cd497b0..059b790 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,13 +1,27 @@ -TARGET=x86_64-w64-mingw32 -CC=-$(TARGET)-gcc +TARGET64=x86_64-w64-mingw32 +TARGET32=mingw32 +CC64=-$(TARGET64)-gcc +CC32=-$(TARGET32)-gcc CFLAGS=-static-libgcc -static-libstdc++ -I.. LIBS=-lopengl32 -lgdi32 -lkernel32 -WINDRES=$(TARGET)-windres +WINDRES64=$(TARGET64)-windres +WINDRES32=$(TARGET32)-windres -layered.exe: layered.c layered_rc.o - $(CC) $(CFLAGS) -o layered.exe layered.c layered_rc.o ../wglarb.c $(LIBS) -Wl,--subsystem,windows +.PHONY: all +all: layered64.exe layered32.exe + +layered64.exe: layered.c layered64_rc.o + $(CC64) $(CFLAGS) -o layered64.exe layered.c layered64_rc.o ../wglarb.c $(LIBS) -Wl,--subsystem,windows + +layered32.exe: layered.c layered32_rc.o + $(CC32) $(CFLAGS) -o layered32.exe layered.c layered32_rc.o ../wglarb.c $(LIBS) -Wl,--subsystem,windows + + +layered64_rc.o: layered.rc manifest.xml + $(WINDRES64) --input layered.rc --output layered64_rc.o + +layered32_rc.o: layered.rc manifest.xml + $(WINDRES32) --input layered.rc --output layered32_rc.o -layered_rc.o: layered.rc manifest - $(WINDRES) --input layered.rc --output layered_rc.o |