/[projet1]/users/mmu_man/sdk-makefile-engine/engine.nmk
Defence Force logotype

Diff of /users/mmu_man/sdk-makefile-engine/engine.nmk

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 846 by mmu_man, Wed Sep 19 01:59:19 2012 UTC revision 847 by mmu_man, Wed Sep 19 16:48:57 2012 UTC
# Line 3  Line 3 
3  !message OSDK Makefile engine (nmake) v0.1  !message OSDK Makefile engine (nmake) v0.1
4    
5  OSDKB = $(OSDK)\bin  OSDKB = $(OSDK)\bin
 SPC=  
6    
7  !if "$(NAME)" == ""  !if "$(NAME)" == ""
8  !if !exist(osdk_config.mk)  !if !exist(osdk_config.mk)
# Line 26  _skip_the_rest = 1 Line 25  _skip_the_rest = 1
25  !endif  !endif
26    
27  !if exist(osdk_config.mk)  !if exist(osdk_config.mk)
28    !message Including osdk_config.mk generated from osdk_config.bat.
29    !message Consider editing the makefile instead.
30  !include osdk_config.mk  !include osdk_config.mk
31  !endif  !endif
32  !endif  !endif
# Line 91  OBJS=BUILD\$(FILES: =.os BUILD\).os Line 92  OBJS=BUILD\$(FILES: =.os BUILD\).os
92          @echo   - convert C to assembly code          @echo   - convert C to assembly code
93          @$(OSDKB)\cpp.exe -lang-c++ -imacros $(OSDK)\macro\macros.h -traditional -P $@.c2 $@.s1          @$(OSDKB)\cpp.exe -lang-c++ -imacros $(OSDK)\macro\macros.h -traditional -P $@.c2 $@.s1
94          @echo   - cleanup output          @echo   - cleanup output
95          @$(OSDKB)\tr < $@.s1 > $@          @type $@.s1 | $(OSDKB)\tr > $@
96    
97    # This causes a stale open file VirtualBox on shared folders
98    # which can't be deleted until closing the cmd.
99    # workaround is to pipe type's output
100    #       @$(OSDKB)\tr < $@.s1 > $@
101    
102  # from .s .asm  # from .s .asm
103    
# Line 117  $(BUILDDIR): Line 123  $(BUILDDIR):
123  #buildmsg: makefile  #buildmsg: makefile
124  #       @echo Building the program $(@F) at address 0x$(ADDR)  #       @echo Building the program $(@F) at address 0x$(ADDR)
125    
126    # add headers as dependency
127    #$(OBJS): *.h
128    
129  $(BUILDDIR)\$(REALTARGET): $(BUILDDIR) $(OBJS)  $(BUILDDIR)\$(REALTARGET): $(BUILDDIR) $(OBJS)
130          @echo Linking          @echo Linking
131          @$(OSDKB)\link65.exe $(OSDKLINK) -d $(OSDK)\lib/ -o BUILD\linked.s -f -q $(OBJS)          @$(OSDKB)\link65.exe $(OSDKLINK) -d $(OSDK)\lib/ -o BUILD\linked.s -f -q $(OBJS)

Legend:
Removed from v.846  
changed lines
  Added in v.847

  ViewVC Help
Powered by ViewVC 1.1.26