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