diff options
author | Nick White <git@njw.me.uk> | 2012-08-21 20:01:40 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2012-08-21 20:01:40 +0100 |
commit | 19342a9b22209d023d5973f1184cf95ca0d9bea5 (patch) | |
tree | 1d287be099d999cf441617302e9ceab46f038aab /Makefile | |
parent | 5d0c097e692d6685269150167bc757866033e1f3 (diff) |
Make mingw cross-compiling from debian work
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -28,8 +28,7 @@ $(BIN): util.a util.a: $(LIB) @echo AR $@ - @$(AR) -r -c $@ $(LIB) - @ranlib $@ + @$(AR) -r -s -c $@ $(LIB) install: all mkdir -p $(DESTDIR)$(PREFIX)/bin @@ -86,7 +85,9 @@ getxbookgui.exe: getxbookgui.tcl # needs to be run from a mingw setup dist-win: $(BIN) $(GUI:.tcl=.exe) mkdir -p $(NAME)-win - cp $(OBJ:.o=.exe) $(GUI:.tcl=.exe) $(NAME)-win + cp $(GUI:.tcl=.exe) $(NAME)-win + for f in $(OBJ) ; do \ + cp $$f $(NAME)-win/$$f.exe mkdir -p $(NAME)-win/icons cp icons/* $(NAME)-win/icons/ for f in LEGAL README COPYING; do \ |