source: cmedia/trunk/Runtime/makefile.os2

Last change on this file was 558, checked in by rudi, 14 years ago

Allow cleanup

File size: 1.3 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
43#############################################################################
44# Cleanup directory
45#############################################################################
46.IGNORE
47
48clean:
49 cd $(OBJDIR)
50 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf *.lib *.bak 2>nul
51 cd ..\..
52
Note: See TracBrowser for help on using the repository browser.