Makefile.nmake 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. all: test.exe test-child.exe bench.exe
  2. CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common /I ..\or \
  3. /I ..\ext
  4. LIBS = ..\..\..\build-alpha\lib\libevent.lib \
  5. ..\..\..\build-alpha\lib\libcrypto.lib \
  6. ..\..\..\build-alpha\lib\libssl.lib \
  7. ..\..\..\build-alpha\lib\libz.lib \
  8. ..\or\libtor.lib \
  9. ws2_32.lib advapi32.lib shell32.lib \
  10. crypt32.lib gdi32.lib user32.lib
  11. TEST_OBJECTS = test.obj test_addr.obj test_channel.obj test_channeltls.obj \
  12. test_consdiff.obj test_containers.obj \
  13. test_controller_events.obj test_crypto.obj test_data.obj test_dir.obj \
  14. test_checkdir.obj test_microdesc.obj test_pt.obj test_util.obj \
  15. test_config.obj test_connection.obj \
  16. test_cell_formats.obj test_relay.obj test_replay.obj \
  17. test_channelpadding.obj \
  18. test_circuitstats.obj \
  19. test_scheduler.obj test_introduce.obj test_hs.obj tinytest.obj
  20. tinytest.obj: ..\ext\tinytest.c
  21. $(CC) $(CFLAGS) /D snprintf=_snprintf /c ..\ext\tinytest.c
  22. test.exe: $(TEST_OBJECTS)
  23. $(CC) $(CFLAGS) $(LIBS) ..\common\*.lib $(TEST_OBJECTS) /Fe$@
  24. bench.exe: bench.obj
  25. $(CC) $(CFLAGS) bench.obj $(LIBS) ..\common\*.lib /Fe$@
  26. test-child.exe: test-child.obj
  27. $(CC) $(CFLAGS) test-child.obj /Fe$@
  28. clean:
  29. del *.obj *.lib test.exe bench.exe test-child.exe