makefile 457 B

123456789101112131415161718192021
  1. CFLAGS=-g -Wall -Wextra -O3 -std=c99
  2. LDLIBS=-lcurl -lssl -lcrypto
  3. objects=curl.o sha.o
  4. mingwCFLAGS=-g -Wall -Wextra -O3 -std=c99
  5. mingwLDLIBS=-lcurl -lssl -lcrypto
  6. mingw=x86_64-w64-mingw32-gcc
  7. pwned: $(objects)
  8. .PHONY: clean
  9. clean:
  10. rm *.o
  11. default: pwned
  12. win/pwned.exe:
  13. $(mingw) $(mingwCFLAGS) -c curl.c $(mingwLDLIBS)
  14. $(mingw) $(mingwCFLAGS) -c sha.c $(mingwLDLIBS)
  15. $(mingw) $(mingwCFLAGS) pwned.c $(objects) $(mingwLDLIBS) -o $@
  16. win: win/pwned.exe