Last change
on this file since 536 was 344, checked in by aitotat@…, 13 years ago |
Changes to Serial Server:
- Makefile now works with Windows SDK 7.1.
|
File size:
1.5 KB
|
Rev | Line | |
---|
[209] | 1 | ######################################################################
|
---|
| 2 | #
|
---|
| 3 | # Project: XTIDE Universal BIOS, Serial Port Server
|
---|
| 4 | #
|
---|
| 5 | # File: makefile
|
---|
| 6 | #
|
---|
[344] | 7 | # Use with GNU Make or Microsoft Nmake
|
---|
| 8 | # Build with Microsoft Visual C++ 2010 or Windows SDK v7.1
|
---|
[209] | 9 | #
|
---|
[223] | 10 | # Also works with Open Watcom C/C++ Version 1.9
|
---|
| 11 | #
|
---|
[209] | 12 |
|
---|
[343] | 13 | HEADERS = library/library.h win32/win32file.h win32/win32serial.h library/file.h library/flatimage.h
|
---|
| 14 |
|
---|
[344] | 15 | CXX = cl
|
---|
| 16 | CXXFLAGS = /Ox /DWIN32
|
---|
[209] | 17 |
|
---|
[219] | 18 | WIN32OBJS = build/win32.obj build/checksum.obj build/serial.obj build/process.obj build/image.obj
|
---|
[209] | 19 |
|
---|
[211] | 20 | build/serdrive.exe: $(WIN32OBJS)
|
---|
[344] | 21 | @$(CXX) /Febuild/serdrive.exe $(WIN32OBJS)
|
---|
[209] | 22 |
|
---|
[343] | 23 | build/win32.obj: win32/win32.cpp $(HEADERS)
|
---|
[344] | 24 | @$(CXX) /c $(CXXFLAGS) win32/win32.cpp /Fobuild/win32.obj
|
---|
[209] | 25 |
|
---|
[343] | 26 | build/checksum.obj: library/checksum.cpp $(HEADERS)
|
---|
[344] | 27 | @$(CXX) /c $(CXXFLAGS) library/checksum.cpp /Fobuild/checksum.obj
|
---|
[209] | 28 |
|
---|
[343] | 29 | build/serial.obj: library/serial.cpp $(HEADERS)
|
---|
[344] | 30 | @$(CXX) /c $(CXXFLAGS) library/serial.cpp /Fobuild/serial.obj
|
---|
[209] | 31 |
|
---|
[343] | 32 | build/process.obj: library/process.cpp $(HEADERS)
|
---|
[344] | 33 | @$(CXX) /c $(CXXFLAGS) library/process.cpp /Fobuild/process.obj
|
---|
[209] | 34 |
|
---|
[343] | 35 | build/image.obj: library/image.cpp $(HEADERS)
|
---|
[344] | 36 | @$(CXX) /c $(CXXFLAGS) library/image.cpp /Fobuild/image.obj
|
---|
[343] | 37 |
|
---|
| 38 |
|
---|
[223] | 39 | release: build/serdrive.exe
|
---|
| 40 | @echo Compressing with UPX...
|
---|
| 41 | @upx -qq --ultra-brute build/serdrive.exe
|
---|
| 42 | @echo Done!
|
---|
[209] | 43 |
|
---|
[223] | 44 | clean:
|
---|
| 45 | @del /q build\*.*
|
---|
[343] | 46 |
|
---|
| 47 |
|
---|
| 48 | build/checksum_test.exe: library/checksum.cpp
|
---|
[344] | 49 | @$(CXX) /Febuild/checksum_test.exe /Ox library/checksum.cpp /Fobuild/checksum_test.obj -D CHECKSUM_TEST
|
---|
[343] | 50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.