diff options
Diffstat (limited to 'Makefile.mingw')
| -rw-r--r-- | Makefile.mingw | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/Makefile.mingw b/Makefile.mingw deleted file mode 100644 index 836c423..0000000 --- a/Makefile.mingw +++ /dev/null @@ -1,50 +0,0 @@ -# GNU makefile - - -# User configuration -DESTDIR ?= /local -CFLAGS ?= -fPIC -O2 -Iinclude -LDFLAGS ?= -lm -TARGET = bh -ENABLE_MT = 1 -CC = gcc - - -# System configuration -include Makefile.srcs - -SRCS += $(SRCS_WIN32) -ifeq ($(ENABLE_MT), 1) - SRCS += $(SRCS_WIN32_MT) - CFLAGS += -pthread - LDFLAGS += -lpthread -else - SRCS += $(SRCS_DUMMY_MT) -endif - -INCDIR ?= $(DESTDIR)/usr/include -INSTALLDIR ?= $(DESTDIR)/usr/lib -STATICLIB = lib$(TARGET).a -SHAREDLIB = lib$(TARGET).so -OBJS = $(SRCS:.c=.o) - - -# Targets -all: $(STATICLIB) $(SHAREDLIB) - -dist: $(STATICLIB) $(SHAREDLIB) - mkdir -p dist - cp *.a dist/ - cp *.so dist/ - -$(STATICLIB): $(OBJS) - $(AR) r $@ $(OBJS) - -$(SHAREDLIB): $(OBJS) - $(CC) -s -shared $(LDFLAGS) -o $@ $(OBJS) - -.c.o: - $(CC) $(CFLAGS) -c $< -o $@ - -clean: - -rm -rf $(OBJS) $(STATICLIB) $(SHAREDLIB) dist |
