From a02dd4f0d17df5b470a1140ae693e78ac6bbc4ff Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 20 Sep 2013 17:40:06 -0700 Subject: [PATCH] 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. --- .gitignore | 1 + Makefile | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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) -- 2.43.0