2003-04-05 10:14:07 +00:00
|
|
|
#
|
|
|
|
# Changelist: 2003-02-25 - Juergen Ulbts - update from wxWindows 2.5.x/HEAD branch
|
|
|
|
#
|
|
|
|
|
2003-06-26 11:22:50 +00:00
|
|
|
|
2003-04-05 10:14:07 +00:00
|
|
|
THISDIR = $+ $(%cdrive):$(%cwd) $-
|
|
|
|
# set OUTPUTDIR to the directory to be used for the .obj files created during
|
|
|
|
# the build (under $THISDIR)
|
|
|
|
!ifndef OUTPUTDIR
|
|
|
|
OUTPUTDIR=$(THISDIR)\$(BASEDIRPREFIX)$(CONFIGURATION)Watcom
|
|
|
|
# no trailing slash for win98
|
|
|
|
!endif
|
|
|
|
|
2003-02-10 20:43:39 +00:00
|
|
|
!include $(WXDIR)\src\makewat.env
|
1999-02-09 16:00:23 +00:00
|
|
|
|
|
|
|
|
2003-04-05 10:14:07 +00:00
|
|
|
|
|
|
|
all: MAKDIR $(LIBTARGET) .SYMBOLIC
|
|
|
|
|
|
|
|
MAKDIR: .SYMBOLIC
|
|
|
|
@if not exist $(OUTPUTDIR) mkdir $(OUTPUTDIR)
|
1999-02-09 16:00:23 +00:00
|
|
|
|
2003-01-22 21:02:34 +00:00
|
|
|
# the name of the file containing the objects to be put in the library
|
2003-04-05 10:14:07 +00:00
|
|
|
LBCFILE=$(LIBTARGET).lbc
|
1999-02-09 16:00:23 +00:00
|
|
|
$(LIBTARGET) : $(OBJECTS)
|
2003-01-22 21:02:34 +00:00
|
|
|
%create $(LBCFILE)
|
|
|
|
@for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
|
|
|
|
$(LIB) /b /c /n /p=512 $^@ @$(LBCFILE)
|
1999-02-09 16:00:23 +00:00
|
|
|
|
|
|
|
clean: .SYMBOLIC
|
2003-04-05 10:14:07 +00:00
|
|
|
-erase $(OUTPUTDIR)\*.obj
|
|
|
|
-erase $(OUTPUTDIR)\*.bak
|
|
|
|
-erase $(OUTPUTDIR)\*.err
|
|
|
|
-erase $(OUTPUTDIR)\*.pch
|
|
|
|
-erase $(OUTPUTDIR)\*.lib
|
|
|
|
-erase $(OUTPUTDIR)\*.lbc
|
|
|
|
-erase $(OUTPUTDIR)\*.res
|
|
|
|
-erase $(OUTPUTDIR)\*.exe
|
|
|
|
-erase $(OUTPUTDIR)\*.lbc
|
1999-02-09 16:00:23 +00:00
|
|
|
-erase $(LIBTARGET)
|
|
|
|
|