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