X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=5ebf41bd149e130ae4a437d58a1cb5ad725ec5cf;hb=a02dd4f0d17df5b470a1140ae693e78ac6bbc4ff;hp=3e7e390a127e81f4cd74e5743089166698cf9212;hpb=92d90669273fd23be351ebbf997f5d461b25ee18;p=glfps 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)