12345678910111213141516171819202122 |
- CFLAGS=`pkg-config --cflags --libs libxml-2.0` `xslt-config --cflags` -g -Wall -Wextra -O3 -std=c99
- LDLIBS=`pkg-config --libs libxml-2.0` `xslt-config --libs` -larchive
- objects=fileinfo.o transform.o zip.o xmlbuff.o
- mingwCFLAGS=`x86_64-w64-mingw32-pkg-config --cflags --libs libxml-2.0 libxslt` -g -Wall -Wextra -O3 -std=c99
- mingwLDLIBS=`x86_64-w64-mingw32-pkg-config --libs libxml-2.0 libxslt` -larchive
- mingw=x86_64-w64-mingw32-gcc
- extractHistory: $(objects)
- win/extractHistory.exe:
- $(mingw) $(mingwCFLAGS) -c fileinfo.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) -c transform.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) -c zip.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) -c xmlbuff.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) extractHistory.c $(objects) $(mingwLDLIBS) -o $@
- clean:
- rm *.o
- win: win/extractHistory.exe
- default: extractHistory
|