makefile 812 B

1234567891011121314151617181920212223
  1. CFLAGS=`pkg-config --cflags --libs libxml-2.0` -g -Wall -Wextra -O3 -std=gnu99
  2. LDLIBS=`pkg-config --libs libxml-2.0` -larchive
  3. objects=keyval.o dict.o comments.o zip.o xmlbuff.o
  4. mingwCFLAGS=`x86_64-w64-mingw32-pkg-config --cflags --libs libxml-2.0` -g -Wall -Wextra -O3 -std=gnu99
  5. mingwLDLIBS=`x86_64-w64-mingw32-pkg-config --libs libxml-2.0` -larchive
  6. mingw=x86_64-w64-mingw32-gcc
  7. anonymize: $(objects)
  8. bin/anonymize.exe:
  9. $(mingw) $(mingwCFLAGS) -c keyval.c $(mingwLDLIBS)
  10. $(mingw) $(mingwCFLAGS) -c dict.c $(mingwLDLIBS)
  11. $(mingw) $(mingwCFLAGS) -c comments.c $(mingwLDLIBS)
  12. $(mingw) $(mingwCFLAGS) -c zip.c $(mingwLDLIBS)
  13. $(mingw) $(mingwCFLAGS) -c xmlbuff.c $(mingwLDLIBS)
  14. $(mingw) $(mingwCFLAGS) anonymize.c $(objects) $(mingwLDLIBS) -o $@
  15. clean:
  16. rm *.o
  17. win: bin/anonymize.exe
  18. default: anonymize