Last change
on this file since 343 was
343,
checked in by gregli@…, 12 years ago
|
Updated serial server makefile so it builds properly with nmake and GNU make.
|
File size:
1.4 KB
|
Line | |
---|
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 | # |
---|
9 | # Also works with Open Watcom C/C++ Version 1.9 |
---|
10 | # |
---|
11 | |
---|
12 | HEADERS = library/library.h win32/win32file.h win32/win32serial.h library/file.h library/flatimage.h |
---|
13 | |
---|
14 | CL = cl |
---|
15 | CLFLAGS = /Ox /DWIN32 |
---|
16 | |
---|
17 | WIN32OBJS = build/win32.obj build/checksum.obj build/serial.obj build/process.obj build/image.obj |
---|
18 | |
---|
19 | build/serdrive.exe: $(WIN32OBJS) |
---|
20 | @$(CL) /Febuild/serdrive.exe $(WIN32OBJS) |
---|
21 | |
---|
22 | build/win32.obj: win32/win32.cpp $(HEADERS) |
---|
23 | @$(CL) /c $(CLFLAGS) win32/win32.cpp /Fobuild/win32.obj |
---|
24 | |
---|
25 | build/checksum.obj: library/checksum.cpp $(HEADERS) |
---|
26 | @$(CL) /c $(CLFLAGS) library/checksum.cpp /Fobuild/checksum.obj |
---|
27 | |
---|
28 | build/serial.obj: library/serial.cpp $(HEADERS) |
---|
29 | @$(CL) /c $(CLFLAGS) library/serial.cpp /Fobuild/serial.obj |
---|
30 | |
---|
31 | build/process.obj: library/process.cpp $(HEADERS) |
---|
32 | @$(CL) /c $(CLFLAGS) library/process.cpp /Fobuild/process.obj |
---|
33 | |
---|
34 | build/image.obj: library/image.cpp $(HEADERS) |
---|
35 | @$(CL) /c $(CLFLAGS) library/image.cpp /Fobuild/image.obj |
---|
36 | |
---|
37 | |
---|
38 | release: build/serdrive.exe |
---|
39 | @echo Compressing with UPX... |
---|
40 | @upx -qq --ultra-brute build/serdrive.exe |
---|
41 | @echo Done! |
---|
42 | |
---|
43 | clean: |
---|
44 | @del /q build\*.* |
---|
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.