Restructure project

This commit is contained in:
James Booth
2016-11-13 17:01:39 +00:00
parent 5eea0240ad
commit cdb6cd93b5
20 changed files with 0 additions and 27 deletions

18
stable/pid/Makefile Normal file
View File

@@ -0,0 +1,18 @@
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LINK_FLAGS := -fno-common -flat_namespace -bundle -undefined suppress
else
LINK_FLAGS := -shared -fpic
endif
all: pid.so
%.so:%.o
$(CC) $(LINK_FLAGS) -lprofanity -o $@ $^
%.o:%.c
$(CC) $(INCLUDE) -D_GNU_SOURCE -D_BSD_SOURCE -fpic -g3 -O0 -std=c99 \
-Wextra -pedantic -c -o $@ $<
clean:
$(RM) pid.so