source: xtideuniversalbios/trunk/Serial_Server/makefile @ 223

Last change on this file since 223 was 223, checked in by krille_n_@…, 12 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
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
12CL = cl
[219]13CLFLAGS = /Ox /DWIN32
[209]14
[219]15WIN32OBJS = build/win32.obj build/checksum.obj build/serial.obj build/process.obj build/image.obj
[209]16
[211]17build/serdrive.exe: $(WIN32OBJS)
[223]18    @$(CL) /Febuild/serdrive.exe $(WIN32OBJS)
[209]19
20build/%.obj:    win32/%.cpp
[223]21    @$(CL) /c $(CLFLAGS) $< /Fo$@
[209]22
23build/%.obj:    library/%.cpp
[223]24    @$(CL) /c $(CLFLAGS) $< /Fo$@
[209]25
[219]26$(WIN32OBJS):   library/library.h win32/win32file.h win32/win32serial.h library/file.h library/flatimage.h
[209]27
28build/checksum_test.exe:    library/checksum.cpp
[223]29    @$(CL) /Febuild/checksum_test.exe /Ox library/checksum.cpp /Fobuild/checksum_test.obj -D CHECKSUM_TEST
[209]30
[223]31release:    build/serdrive.exe
32    @echo Compressing with UPX...
33    @upx -qq --ultra-brute build/serdrive.exe
34    @echo Done!
[209]35
[223]36clean:
37    @del /q build\*.*
Note: See TracBrowser for help on using the repository browser.