mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32:22 -05:00
448c2f5f7a
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1697 3d1905a2-6b24-0410-a738-b14d5a86fcbd
33 lines
1019 B
Makefile
33 lines
1019 B
Makefile
# Project: util-core
|
|
|
|
PROJECTNAME=util-core
|
|
RM = rm -f
|
|
CPP = ${MINGW}/bin/${TARGET}-g++.exe
|
|
CC = ${MINGW}/bin/${TARGET}-gcc.exe
|
|
WINDRES = windres.exe
|
|
MINGW =
|
|
RES =
|
|
OBJ = SingleInstanceManager.o Process.o Log.o Thread.o FileUtils.o StringUtils.o DebugConsole.o $(RES)
|
|
LIBS = -static-libgcc -L"$(MINGW)/lib"
|
|
INCS = -I"$(MINGW)/include" -I"$(JDK)/include" -I"$(JDK)/include/win32"
|
|
CXXINCS = -Os -I"$(MINGW)/include/c++" -I"$(MINGW)/include/c++/mingw32" -I"$(MINGW)/include/c++/backward" -I"$(MINGW)/include" -I"$(JDK)/include" -I"$(JDK)/include/win32"
|
|
BIN = $(PROJECTNAME).a
|
|
CXXFLAGS = $(CUSTOMFLAGS) $(CXXINCS) -DJDK="$(JDK)"
|
|
CFLAGS = $(INCS)
|
|
|
|
.PHONY: all all-before all-after clean clean-custom $(PROJECTNAME)
|
|
|
|
all: all-before $(PROJECTNAME).a testmain.cpp all-after
|
|
|
|
|
|
clean: clean-custom
|
|
$(RM) $(OBJ) $(BIN) testmain.o test.exe
|
|
|
|
$(BIN): $(OBJ)
|
|
ar r $(BIN) $(OBJ)
|
|
ranlib $(BIN)
|
|
$(CPP) $(OBJ) testmain.o -o test.exe $(LIBS)
|
|
|
|
$(PROJECTNAME).a: $(OBJ) testmain.o
|
|
|