Changeset 343 in xtideuniversalbios for trunk/Serial_Server/makefile


Ignore:
Timestamp:
Mar 14, 2012, 6:19:35 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Updated serial server makefile so it builds properly with nmake and GNU make.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Serial_Server/makefile

    r223 r343  
    1010#
    1111
     12HEADERS = library/library.h win32/win32file.h win32/win32serial.h library/file.h library/flatimage.h
     13
    1214CL = cl
    1315CLFLAGS = /Ox /DWIN32
     
    1820    @$(CL) /Febuild/serdrive.exe $(WIN32OBJS)
    1921
    20 build/%.obj:    win32/%.cpp
    21     @$(CL) /c $(CLFLAGS) $< /Fo$@
     22build/win32.obj:    win32/win32.cpp $(HEADERS)
     23    @$(CL) /c $(CLFLAGS) win32/win32.cpp /Fobuild/win32.obj
    2224
    23 build/%.obj:    library/%.cpp
    24     @$(CL) /c $(CLFLAGS) $< /Fo$@
     25build/checksum.obj: library/checksum.cpp $(HEADERS)
     26    @$(CL) /c $(CLFLAGS) library/checksum.cpp /Fobuild/checksum.obj
    2527
    26 $(WIN32OBJS):   library/library.h win32/win32file.h win32/win32serial.h library/file.h library/flatimage.h
     28build/serial.obj:   library/serial.cpp $(HEADERS)
     29    @$(CL) /c $(CLFLAGS) library/serial.cpp /Fobuild/serial.obj
    2730
    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
     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
    3037
    3138release:    build/serdrive.exe
     
    3643clean:
    3744    @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 TracChangeset for help on using the changeset viewer.