makefile 843 B

12345678910111213141516171819202122
  1. CFLAGS=`pkg-config --cflags --libs libxml-2.0` `xslt-config --cflags` -g -Wall -Wextra -O3 -std=c99
  2. LDLIBS=`pkg-config --libs libxml-2.0` `xslt-config --libs` -larchive
  3. objects=fileinfo.o transform.o zip.o xmlbuff.o
  4. mingwCFLAGS=`x86_64-w64-mingw32-pkg-config --cflags --libs libxml-2.0 libxslt` -g -Wall -Wextra -O3 -std=c99
  5. mingwLDLIBS=`x86_64-w64-mingw32-pkg-config --libs libxml-2.0 libxslt` -larchive
  6. mingw=x86_64-w64-mingw32-gcc
  7. extractHistory: $(objects)
  8. win/extractHistory.exe:
  9. $(mingw) $(mingwCFLAGS) -c fileinfo.c $(mingwLDLIBS)
  10. $(mingw) $(mingwCFLAGS) -c transform.c $(mingwLDLIBS)
  11. $(mingw) $(mingwCFLAGS) -c zip.c $(mingwLDLIBS)
  12. $(mingw) $(mingwCFLAGS) -c xmlbuff.c $(mingwLDLIBS)
  13. $(mingw) $(mingwCFLAGS) extractHistory.c $(objects) $(mingwLDLIBS) -o $@
  14. clean:
  15. rm *.o
  16. win: win/extractHistory.exe
  17. default: extractHistory