source: xtideuniversalbios/trunk/Serial_Server/makefile@ 343

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
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
12HEADERS = library/library.h win32/win32file.h win32/win32serial.h library/file.h library/flatimage.h
13
14CL = cl
15CLFLAGS = /Ox /DWIN32
16
17WIN32OBJS = build/win32.obj build/checksum.obj build/serial.obj build/process.obj build/image.obj
18
19build/serdrive.exe: $(WIN32OBJS)
20 @$(CL) /Febuild/serdrive.exe $(WIN32OBJS)
21
22build/win32.obj: win32/win32.cpp $(HEADERS)
23 @$(CL) /c $(CLFLAGS) win32/win32.cpp /Fobuild/win32.obj
24
25build/checksum.obj: library/checksum.cpp $(HEADERS)
26 @$(CL) /c $(CLFLAGS) library/checksum.cpp /Fobuild/checksum.obj
27
28build/serial.obj: library/serial.cpp $(HEADERS)
29 @$(CL) /c $(CLFLAGS) library/serial.cpp /Fobuild/serial.obj
30
31build/process.obj: library/process.cpp $(HEADERS)
32 @$(CL) /c $(CLFLAGS) library/process.cpp /Fobuild/process.obj
33
34build/image.obj: library/image.cpp $(HEADERS)
35 @$(CL) /c $(CLFLAGS) library/image.cpp /Fobuild/image.obj
36
37
38release: build/serdrive.exe
39 @echo Compressing with UPX...
40 @upx -qq --ultra-brute build/serdrive.exe
41 @echo Done!
42
43clean:
44 @del /q build\*.*
45
46
47build/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.