source: xtideuniversalbios/tags/v2.0.0_beta_3/Serial_Server/makefile@ 625

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