source: sbliveos2/trunk/runtime/makefile.os2

Last change on this file was 174, checked in by sandervl, 24 years ago

makefile updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
RevLine 
[142]1#
2# Set the environmental variables for compiling
3#
4.ERASE
5
6.SUFFIXES:
7.SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .h .lib
8
9NAME = runtime
10
11.BEFORE
12 set INCLUDE=
13!ifndef %WATCOM
14 set WATCOM=..\..\..\..\WATCOM
15!endif
16 set PATH=$(%DDK)\BASE\TOOLS;$(%WATCOM)\BINP;$(%WATCOM)\BINW
17
[174]18INCLUDE=$(%DDK)\base\h
[142]19INC=$(%DDK)\base\src\inc
20
[174]21!include ..\makefile.inc
22!include ..\include\sblive16.mak
[142]23
24# Object file list
25OBJ1=math.obj ctype.obj string.obj cpp.obj printf.obj
26OBJ2=iodelay.obj devhelp.obj
27OBJS=$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6)
28
[174]29all: $(OBJDIR)\$(NAME).lib
[142]30
31##################################
32# Target descriptions
33##################################
34
[174]35$(OBJDIR)\$(NAME).lrf: makefile.os2
36 @%write $^@ $(OBJDIR)\$(NAME).lib
37 @for %f in ($(OBJS)) do @%append $^@ -+ $(OBJDIR)\%f
[142]38
[174]39$(OBJDIR)\$(NAME).lib: $(OBJS) makefile.os2 $(OBJDIR)\$(NAME).lrf
40 wlib @$(OBJDIR)\$(NAME).lrf
41 copy $(OBJDIR)\$(NAME).lib $(SBLIVE_LIB)
[142]42
[148]43clean:
[174]44 cd $(OBJDIR)
[148]45 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf *.lib
[174]46 cd ..\..
47
Note: See TracBrowser for help on using the repository browser.