Makefile.nmake 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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_containers.obj \
  12. test_controller_events.ogj test_crypto.obj test_data.obj test_dir.obj \
  13. test_microdesc.obj test_pt.obj test_util.obj test_config.obj \
  14. test_cell_formats.obj test_replay.obj test_introduce.obj tinytest.obj \
  15. test_hs.obj
  16. tinytest.obj: ..\ext\tinytest.c
  17. $(CC) $(CFLAGS) /D snprintf=_snprintf /c ..\ext\tinytest.c
  18. test.exe: $(TEST_OBJECTS)
  19. $(CC) $(CFLAGS) $(LIBS) ..\common\*.lib $(TEST_OBJECTS) /Fe$@
  20. bench.exe: bench.obj
  21. $(CC) $(CFLAGS) bench.obj $(LIBS) ..\common\*.lib /Fe$@
  22. test-child.exe: test-child.obj
  23. $(CC) $(CFLAGS) test-child.obj /Fe$@
  24. clean:
  25. del *.obj *.lib test.exe bench.exe test-child.exe