From: Carl Worth Date: Sat, 21 Sep 2013 00:40:06 +0000 (-0700) Subject: Add a 32-bit target to the Makefile as well X-Git-Url: https://git.cworth.org/git?p=glfps;a=commitdiff_plain;h=a02dd4f0d17df5b470a1140ae693e78ac6bbc4ff Add a 32-bit target to the Makefile as well This makes it easier to demo games that are only available as 32-bit binaries. --- diff --git a/.gitignore b/.gitignore index 916f458..4b5cbe1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ libglfps.so +libglfps-32.so diff --git a/Makefile b/Makefile index 3e7e390..5ebf41b 100644 --- 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)