1234567891011121314151617181920212223 |
- CFLAGS=`pkg-config --cflags --libs libxml-2.0` -g -Wall -Wextra -O3 -std=gnu99
- LDLIBS=`pkg-config --libs libxml-2.0` -larchive
- objects=keyval.o dict.o comments.o zip.o xmlbuff.o
- mingwCFLAGS=`x86_64-w64-mingw32-pkg-config --cflags --libs libxml-2.0` -g -Wall -Wextra -O3 -std=gnu99
- mingwLDLIBS=`x86_64-w64-mingw32-pkg-config --libs libxml-2.0` -larchive
- mingw=x86_64-w64-mingw32-gcc
- anonymize: $(objects)
- bin/anonymize.exe:
- $(mingw) $(mingwCFLAGS) -c keyval.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) -c dict.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) -c comments.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) -c zip.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) -c xmlbuff.c $(mingwLDLIBS)
- $(mingw) $(mingwCFLAGS) anonymize.c $(objects) $(mingwLDLIBS) -o $@
- clean:
- rm *.o
- win: bin/anonymize.exe
- default: anonymize
|