diff options
Diffstat (limited to 'source/myhtml/Makefile')
-rw-r--r-- | source/myhtml/Makefile | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/source/myhtml/Makefile b/source/myhtml/Makefile deleted file mode 100644 index fea345f..0000000 --- a/source/myhtml/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -TARGET := myhtml -SRCDIR := myhtml - -CC ?= gcc - -LIBPOSTFIX := .so -LIBNAME := myhtml -LIBSTATIC_PREFIX := static_ - -CFLAGS ?= -Wall -Werror -O2 -fPIC --std=c99 -pthread -I.. - -ifeq ($(OS),Windows_NT) -else - UNAM := $(shell uname -s) - ifeq ($(UNAM),Darwin) - LIBPOSTFIX := .dylib - else - CFLAGS += -D_POSIX_C_SOURCE=199309L - endif -endif - -SRCS := $(wildcard *.c) -SRCS += $(wildcard utils/*.c) -HDRS := $(wildcard *.h) -HDRS += $(wildcard utils/*.h) -OBJS := $(patsubst %.c, %.o, $(SRCS)) - -all: shared static - -shared: $(OBJS) $(HDRS) - $(CC) -shared $(LDFLAGS) $(OBJS) -o lib$(LIBNAME)$(LIBPOSTFIX) - -static: shared - $(AR) crus $(LIBSTATIC_PREFIX)lib$(LIBNAME).a $(OBJS) - -clean: - rm -rf *.o - rm -rf utils/*.o - rm -rf *lib$(LIBNAME)* - -.PHONY: all clean |