|
|
1.1 ! root 1: !IF "$(CPU)" != "" ! 2: OS=NT ! 3: ENV=WIN32 ! 4: !ELSE ! 5: OS=DOS ! 6: ENV=WIN16 ! 7: !ENDIF ! 8: ! 9: # If this generates the error "Unable to open DOSWIN16.MAK" then you need ! 10: # to put a copy of that file (from the GENERIC sample code directory) ! 11: # into a directory on your INCLUDE environment variable ! 12: ! 13: !include <$(OS)$(ENV).MAK> ! 14: ! 15: proj = GENERIC ! 16: ! 17: all: $(proj).exe ! 18: ! 19: # Update the help file if necessary ! 20: $(proj).hlp : $(proj).rtf ! 21: hc -n $(proj).hpj ! 22: ! 23: # Update the resource if necessary ! 24: $(proj).res: $(proj).rc $(proj).rcv $(proj).dlg $(proj).h ! 25: rc -r -fo $(proj).res $(cvars) $(proj).rc ! 26: !IFDEF CPUTYPE ! 27: cvtres -$(CPU) $(proj).res -o $(proj).rbj ! 28: !ENDIF ! 29: ! 30: ! 31: # Update the object file if necessary ! 32: $(proj).obj: $(proj).c $(proj).h ! 33: $(cc) $(cflags) $(cvars) $(cdebug) $(proj).c ! 34: ! 35: # Since the link line has some severe differences depending on what ! 36: # platform we are running on, we need to special case this so that ! 37: # we execute the correct commands: ! 38: ! 39: $(proj).exe: $(proj).obj $(proj).res $(proj).def $(proj).hlp ! 40: !IFDEF CPUTYPE ! 41: # This is for Windows NT: ! 42: $(cvtobj) $(cvtdebug) *.obj ! 43: $(link) $(linkdebug) $(guiflags) $(proj).obj $(guilibs) VERSION.LIB $(proj).rbj -out:$(proj).exe ! 44: !ENDIF ! 45: !IFNDEF CPUTYPE ! 46: # This is for Windows DOS: ! 47: $(link) $(guiflags) $(proj).obj $(guilibs) $(proj).DEF ! 48: rc $(proj).res ! 49: !ENDIF
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.