Fix building with makefile.win32 from Windows command prompt, not MSYS
This commit is contained in:
parent
40da14b5b1
commit
08d751daf2
@ -14,19 +14,17 @@
|
|||||||
WINDRES = windres.exe
|
WINDRES = windres.exe
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
CP = copy
|
CP = copy /Y
|
||||||
RM = del
|
RM = del
|
||||||
MAKE = make
|
MAKE = mingw32-make
|
||||||
-include localwin32.mk
|
-include localwin32.mk
|
||||||
|
|
||||||
# Note: && is needed after cd because each line is executed in a different
|
|
||||||
# shell. (cd .. is just for clarity).
|
|
||||||
all: config.h
|
all: config.h
|
||||||
cd tagmanager/mio && $(MAKE) -f makefile.win32 && cd ../..
|
$(MAKE) -C tagmanager/mio -f makefile.win32
|
||||||
cd tagmanager && $(MAKE) -f makefile.win32 && cd ..
|
$(MAKE) -C tagmanager -f makefile.win32
|
||||||
cd scintilla && $(MAKE) -f makefile.win32 && cd ..
|
$(MAKE) -C scintilla -f makefile.win32
|
||||||
cd plugins && $(MAKE) -f makefile.win32 && cd ..
|
$(MAKE) -C plugins -f makefile.win32
|
||||||
cd src && $(MAKE) -f makefile.win32 && cd ..
|
$(MAKE) -C src -f makefile.win32
|
||||||
|
|
||||||
config.h: win32-config.h
|
config.h: win32-config.h
|
||||||
$(CP) $< $@
|
$(CP) $< $@
|
||||||
@ -39,11 +37,11 @@ clean-local:
|
|||||||
-$(RM) geany_private.res geany.exe
|
-$(RM) geany_private.res geany.exe
|
||||||
|
|
||||||
clean: deps
|
clean: deps
|
||||||
cd tagmanager/mio && $(MAKE) -f makefile.win32 clean && cd ../..
|
$(MAKE) -C tagmanager/mio -f makefile.win32 clean
|
||||||
cd tagmanager && $(MAKE) -f makefile.win32 clean && cd ..
|
$(MAKE) -C tagmanager -f makefile.win32 clean
|
||||||
cd scintilla && $(MAKE) -f makefile.win32 clean && cd ..
|
$(MAKE) -C scintilla -f makefile.win32 clean
|
||||||
cd plugins && $(MAKE) -f makefile.win32 clean && cd ..
|
$(MAKE) -C plugins -f makefile.win32 clean
|
||||||
cd src && $(MAKE) -f makefile.win32 clean && cd ..
|
$(MAKE) -C src -f makefile.win32 clean
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
DESTDIR='C:/Program Files/Geany'
|
DESTDIR='C:/Program Files/Geany'
|
||||||
|
|||||||
@ -77,7 +77,7 @@ $(RES): ../geany_private.rc ../icons/geany.ico
|
|||||||
# this calls parent clean-local target because del ../file won't work
|
# this calls parent clean-local target because del ../file won't work
|
||||||
clean:
|
clean:
|
||||||
-$(RM) deps.mak *.o
|
-$(RM) deps.mak *.o
|
||||||
cd .. && $(MAKE) -f makefile.win32 clean-local && cd src
|
$(MAKE) -C .. -f makefile.win32 clean-local
|
||||||
|
|
||||||
exec:
|
exec:
|
||||||
$(EXECDIR)\geany.exe
|
$(EXECDIR)\geany.exe
|
||||||
@ -85,10 +85,10 @@ exec:
|
|||||||
binclean:
|
binclean:
|
||||||
$(RM) $(TARGET)
|
$(RM) $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(OBJS) $(RES) ../scintilla/scintilla.a ../tagmanager/mio/mio.a ../tagmanager/tagmanager.a
|
STLIBS = ../scintilla/scintilla.a ../tagmanager/tagmanager.a ../tagmanager/mio/mio.a
|
||||||
$(CXX) $(OBJS) $(RES) -o $(TARGET) \
|
|
||||||
../scintilla/scintilla.a ../tagmanager/tagmanager.a ../tagmanager/mio/mio.a \
|
$(TARGET): $(OBJS) $(RES) $(STLIBS)
|
||||||
$(ALL_GTK_LIBS) $(WIN_LIBS)
|
$(CXX) $(OBJS) $(RES) -o $(TARGET) $(STLIBS) $(ALL_GTK_LIBS) $(WIN_LIBS)
|
||||||
|
|
||||||
deps.mak:
|
deps.mak:
|
||||||
$(CC) -MM $(CFLAGS) *.c >deps.mak
|
$(CC) -MM $(CFLAGS) *.c >deps.mak
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user