cmdlineoptions/c/Makefile

18 lines
275 B
Makefile
Raw Normal View History

2013-12-26 13:36:55 +01:00
all: build static dynamic
build:
gcc -c cmdlineoptions.c
2013-12-26 13:36:55 +01:00
static: build
ar cq libcmdlineoptions.a cmdlineoptions.o
2013-12-26 13:36:55 +01:00
dynamic:
gcc -c -fPIC -o cmdlineoptions-static.o cmdlineoptions.c
ld -G cmdlineoptions-static.o -o libcmdlineoptions.so
2013-12-26 13:36:55 +01:00
clean:
rm -f *.o *.a *.so