1
0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-12-04 19:08:21 +01:00
ultrajson/lib/Makefile
2020-05-12 09:36:47 +03:00

23 lines
397 B
Makefile

PROGRAM=libujson.a
CPP=gcc
LIBS=-lm
SOURCE=.
OBJS=ultrajsonenc.o ultrajsondec.o
LINKFLAGS=-shared
#-Wl,-soname,libultrajson.so.1
CPPFLAGS=-D_REENTRANT -D_LINUX
all : CPPFLAGS += -O3 -DNDEBUG -fPIC
all : libultrajson
libultrajson : $(OBJS)
ar rcs ./$(PROGRAM) $(OBJS)
cp ./$(PROGRAM) ./python/lib/
%.o: $(SOURCE)/%.c
$(CPP) $(CPPFLAGS) -c $< -o ./$@
clean:
rm -rf *.o
rm -rf $(PROGRAM)