]> git.cworth.org Git - glfps/commitdiff
Add a 32-bit target to the Makefile as well
authorCarl Worth <cworth@cworth.org>
Sat, 21 Sep 2013 00:40:06 +0000 (17:40 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Sep 2013 14:14:24 +0000 (07:14 -0700)
This makes it easier to demo games that are only available as 32-bit
binaries.

.gitignore
Makefile

index 916f4583dc4932563e8d3e70a26a8d87313c9245..4b5cbe1ee61660d24eecca6bb0018e30b264586e 100644 (file)
@@ -1 +1,2 @@
 libglfps.so
+libglfps-32.so
index 3e7e390a127e81f4cd74e5743089166698cf9212..5ebf41bd149e130ae4a437d58a1cb5ad725ec5cf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,15 @@
 CC ?= gcc
 CFLAGS ?= -g -Wall -Wextra -Wmissing-declarations
 
+TARGETS=libglfps.so libglfps-32.so
+
+all: $(TARGETS)
+
 libglfps.so: glfps.c
        $(CC) $(CFLAGS) -fPIC -shared -Wl,-Bsymbolic -o $@ $<
 
+libglfps-32.so: glfps.c
+       $(CC) $(CFLAGS) -m32 -fPIC -shared -Wl,-Bsymbolic -o $@ $<
+
 clean:
-       rm -f libglfps.so
+       rm -f $(TARGETS)