Skip to content

Commit

Permalink
AppVeyor configuration #3
Browse files Browse the repository at this point in the history
  • Loading branch information
mrihtar committed Nov 27, 2018
1 parent d9d59ed commit 70b2825
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
15 changes: 6 additions & 9 deletions Makefile.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RANLIB = ranlib
RC = windres
RM = rm -f
CP = cp
DIFF = diff

DEBUG = -O2
#DEBUG = -g
Expand Down Expand Up @@ -39,19 +40,15 @@ YOBJS = flo.o
all: $(TGTS)

gk-slo.exe: $(WOBJS)
-taskkill //F //IM $@ //T
$(CC) -o $@ $(WOBJS) $(LDFLAGS) $(LPATH) $(LIBS)

gk-shp.exe: $(SOBJS) $(SHPOBJS)
-taskkill //F //IM $@ //T
$(CC) -o $@ $(SOBJS) $(SHPOBJS) $(LDFLAGS) $(LPATH) $(LIBS)

xgk-slo.exe: $(XOBJS) $(SHPOBJS) xgk-slo.rc globe.ico
-taskkill //F //IM $@ //T
$(RC) $(@:.exe=).rc $(@:.exe=).res.o
$(CXX) -o $@ $(XOBJS) $(SHPOBJS) $(@:.exe=).res.o $(XLDFLAGS) $(XLPATH) $(XLIBS)
flo.exe: $(YOBJS)
-taskkill //F //IM $@ //T
$(CXX) -o $@ $(YOBJS) $(XLDFLAGS) $(XLPATH) $(XLIBS)

$(WOBJS): $(INCL)
Expand All @@ -60,11 +57,11 @@ $(SHPOBJS): $(SHPINCL)
$(XOBJS): $(XINCL)

test: gk-slo.exe # TODO add tests for all $(TGTS)
gk-slo.exe -x > gk-slo.tmp
fc //l gk-slo.tmp refout-slo.txt
gk-slo.exe -x -g egm > gk-slo.tmp
fc //l gk-slo.tmp refout-egm.txt
@$(RM) gk-slo.tmp > NUL
./gk-slo.exe -x > gk-slo.tmp
$(DIFF) gk-slo.tmp refout-slo.txt
./gk-slo.exe -x -g egm > gk-slo.tmp
$(DIFF) gk-slo.tmp refout-egm.txt
@$(RM) gk-slo.tmp

install: $(TGTS)
@echo Copy gk-slo.exe, gk-shp.exe and xgk-slo.exe to a directory of your choice
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ install:
- if "%TOOLCHAIN%"=="MSYS2" set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if "%TOOLCHAIN%"=="MSYS2" set PATH=%TOOLPATH%;%PATH%

- if "%TOOLCHAIN%" == "MSC" call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %platform%
- if "%TOOLCHAIN%"=="MSC" call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %platform%

build_script:
#- if "%TOOLCHAIN%"=="MSYS2" ( mingw32-make -f Makefile.mingw all ) # TODO
- if "%TOOLCHAIN%"=="MSYS2" ( mingw32-make -f Makefile.mingw gk-slo.exe gk-shp.exe )

#- if "%TOOLCHAIN%" == "MSC" ( nmake /f Makefile.msc all ) # TODO
- if "%TOOLCHAIN%" == "MSC" ( nmake /f Makefile.msc gk-slo.exe gk-shp.exe )
#- if "%TOOLCHAIN%"=="MSC" ( nmake /f Makefile.msc all ) # TODO
- if "%TOOLCHAIN%"=="MSC" ( nmake /f Makefile.msc gk-slo.exe gk-shp.exe )

#after_build:

Expand Down

0 comments on commit 70b2825

Please sign in to comment.