diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-06-26 15:37:53 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-06-26 15:37:53 +0300 |
commit | 390a6408563067613b29de895cb40e4d0386d62c (patch) | |
tree | 74efbd8a29a433fb3c15697d65b8dc3f00011b87 /windows/Makefile | |
parent | Fix @variables@ to $(variables) in Makefile.am files. (diff) | |
download | xz-390a6408563067613b29de895cb40e4d0386d62c.tar.xz |
Basic support for building with Cygwin and MinGW using
the Autotools based build system. It's not good yet, more
fixes will follow.
Diffstat (limited to '')
-rw-r--r-- | windows/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/windows/Makefile b/windows/Makefile index d552b1c3..c6ebfc94 100644 --- a/windows/Makefile +++ b/windows/Makefile @@ -62,8 +62,6 @@ ALL_CPPFLAGS = \ ALL_CPPFLAGS += -DHAVE_CONFIG_H -STATIC_CPPFLAGS = -DLZMA_API_STATIC - # This works with Wine too while using native GNU make, sed, and rm. ifdef WINE ifdef W64 @@ -213,10 +211,10 @@ liblzma.dll: $(LIBLZMA_OBJS) $(STRIP) --strip-all liblzma.dll $(LIBLZMA_OBJS_C): %.o: %.c - $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< + $(CC) -DDLL_EXPORT $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< $(LIBLZMA_OBJS_ASM): %.o: %.S - $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< + $(CC) -DDLL_EXPORT $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< liblzma_static.lib: $(LIBLZMA_OBJS_STATIC) $(RM) $@ @@ -224,10 +222,10 @@ liblzma_static.lib: $(LIBLZMA_OBJS_STATIC) $(STRIP) --strip-unneeded $@ $(LIBLZMA_OBJS_STATIC_C): %-static.o: %.c - $(CC) $(STATIC_CPPFLAGS) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< + $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< $(LIBLZMA_OBJS_STATIC_ASM): %-static.o: %.S - $(CC) $(STATIC_CPPFLAGS) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< + $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< .PHONY: liblzma-clean liblzma-clean: @@ -252,11 +250,11 @@ lzmadec-dynamic.exe: liblzma.dll $(XZDEC_SRCS) lzmadec_rc.o $(STRIP) --strip-all $@ xzdec.exe: liblzma_static.lib $(XZDEC_SRCS) xzdec_rc.o - $(CC) $(STATIC_CPPFLAGS) $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(XZDEC_SRCS) xzdec_rc.o -o $@ liblzma_static.lib + $(CC) -DLZMA_API_STATIC $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(XZDEC_SRCS) xzdec_rc.o -o $@ liblzma_static.lib $(STRIP) --strip-all $@ lzmadec.exe: liblzma_static.lib $(XZDEC_SRCS) lzmadec_rc.o - $(CC) $(STATIC_CPPFLAGS) $(ALL_CPPFLAGS) -DLZMADEC $(ALL_CFLAGS) $(XZDEC_SRCS) lzmadec_rc.o -o $@ liblzma_static.lib + $(CC) -DLZMA_API_STATIC $(ALL_CPPFLAGS) -DLZMADEC $(ALL_CFLAGS) $(XZDEC_SRCS) lzmadec_rc.o -o $@ liblzma_static.lib $(STRIP) --strip-all $@ .PHONY: xzdec-clean @@ -301,7 +299,7 @@ xz-dynamic.exe: liblzma.dll $(XZ_OBJS) xz_rc.o $(STRIP) --strip-all $@ $(XZ_OBJS_STATIC): %-static.o: %-fixed.c - $(CC) $(STATIC_CPPFLAGS) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< + $(CC) -DLZMA_API_STATIC $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $< xz.exe: liblzma_static.lib $(XZ_OBJS_STATIC) xz_rc.o $(CC) $(ALL_CFLAGS) $(XZ_OBJS_STATIC) xz_rc.o -o $@ liblzma_static.lib |