source: sbliveos2/trunk/runtime/makefile.os2@ 205

Last change on this file since 205 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
Line 
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
18INCLUDE=$(%DDK)\base\h
19INC=$(%DDK)\base\src\inc
20
21!include ..\makefile.inc
22!include ..\include\sblive16.mak
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
29all: $(OBJDIR)\$(NAME).lib
30
31##################################
32# Target descriptions
33##################################
34
35$(OBJDIR)\$(NAME).lrf: makefile.os2
36 @%write $^@ $(OBJDIR)\$(NAME).lib
37 @for %f in ($(OBJS)) do @%append $^@ -+ $(OBJDIR)\%f
38
39$(OBJDIR)\$(NAME).lib: $(OBJS) makefile.os2 $(OBJDIR)\$(NAME).lrf
40 wlib @$(OBJDIR)\$(NAME).lrf
41 copy $(OBJDIR)\$(NAME).lib $(SBLIVE_LIB)
42
43clean:
44 cd $(OBJDIR)
45 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf *.lib
46 cd ..\..
47
Note: See TracBrowser for help on using the repository browser.