git repos / oastat

commit 67e63843

sago007 · 2014-07-01 20:14
67e638431b39d2c003261da7dde37dd0d3685283 patch · browse files
parent 2e96df251d0b251fbb680b9993dded152f1c40e8

The mxe build is now more standard like (as defined on the mxe.cc homepage).
Program name is now overruled from the outside.

Changed files

M src/Makefile before
M src/mxe-build.sh before
diff --git a/src/Makefile b/src/Makefile index 283631d..f79713b 100644 --- a/src/Makefile +++ b/src/Makefile
@@ -7,6 +7,9 @@ USECPPDB=1
#ifndef PROGRAMNAME
PROGRAMNAME=oastat
#endif
+#ifdef CROSS
+CXX=$(CROSS)g++
+#endif
BASE_LIBS=-lgcrypt -lboost_program_options -lgpg-error
BASE_CFLAGS=-c -g -O2 -Wall -std=c++0x
@@ -40,7 +43,7 @@ clean:
rm -f */*.o *.o *.P */*.P */*/*.P ${PROGRAMNAME}
${PROGRAMNAME}: $(O_FILES)
- $(CXX) -O -o oastat $(O_FILES) $(BASE_LIBS)
+ $(CXX) -O -o ${PROGRAMNAME} $(O_FILES) $(BASE_LIBS)
%.o : %.cpp
$(CXX) -MD ${BASE_CFLAGS} -o $@ $<
diff --git a/src/mxe-build.sh b/src/mxe-build.sh index 08f8ab2..da294a2 100755 --- a/src/mxe-build.sh +++ b/src/mxe-build.sh
@@ -1 +1 @@
-CXX=i686-pc-mingw32-g++ make USEDBIXX=0
+make USEDBIXX=0 CROSS=i686-pc-mingw32- PROGRAMNAME=oastat.exe