Last change
on this file since 298 was 223, checked in by krille_n_@…, 13 years ago |
Changes:
- Fixed what appears to be a mistake in EBIOS.inc
- Added a 'release' option to the makefile of the Serial Server (invokes UPX)
- Some very minor optimizations
- Removed the eSEG macro and did some other cleanups (fixed typos etc)
|
File size:
1019 bytes
|
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 | CL = cl
|
---|
13 | CLFLAGS = /Ox /DWIN32
|
---|
14 |
|
---|
15 | WIN32OBJS = build/win32.obj build/checksum.obj build/serial.obj build/process.obj build/image.obj
|
---|
16 |
|
---|
17 | build/serdrive.exe: $(WIN32OBJS)
|
---|
18 | @$(CL) /Febuild/serdrive.exe $(WIN32OBJS)
|
---|
19 |
|
---|
20 | build/%.obj: win32/%.cpp
|
---|
21 | @$(CL) /c $(CLFLAGS) $< /Fo$@
|
---|
22 |
|
---|
23 | build/%.obj: library/%.cpp
|
---|
24 | @$(CL) /c $(CLFLAGS) $< /Fo$@
|
---|
25 |
|
---|
26 | $(WIN32OBJS): library/library.h win32/win32file.h win32/win32serial.h library/file.h library/flatimage.h
|
---|
27 |
|
---|
28 | build/checksum_test.exe: library/checksum.cpp
|
---|
29 | @$(CL) /Febuild/checksum_test.exe /Ox library/checksum.cpp /Fobuild/checksum_test.obj -D CHECKSUM_TEST
|
---|
30 |
|
---|
31 | release: build/serdrive.exe
|
---|
32 | @echo Compressing with UPX...
|
---|
33 | @upx -qq --ultra-brute build/serdrive.exe
|
---|
34 | @echo Done!
|
---|
35 |
|
---|
36 | clean:
|
---|
37 | @del /q build\*.*
|
---|
Note:
See
TracBrowser
for help on using the repository browser.