X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e87b7b6000ce8af6fe6284c8dededa2415ee13ce..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/makelib.b32?ds=inline diff --git a/src/makelib.b32 b/src/makelib.b32 index 446525555e..1ebba24158 100644 --- a/src/makelib.b32 +++ b/src/makelib.b32 @@ -8,30 +8,25 @@ # Include file for libraries. Set LIBTARGET and OBJECTS # before including this file. -# WXWIN and BCCDIR are set by parent make -WXDIR = $(WXWIN) - -!include $(WXDIR)\src\makeb32.env - -$(LIBTARGET): $(OBJECTS) - -erase $(LIBTARGET) - tlib $(LIBTARGET) /P512 @&&! --+$(OBJECTS:.obj =.obj -+) +lib: $(LIBTARGET) + +$(LIBTARGET): $(OBJECTS) + -if exist $(LIBTARGET) $(RM) $(LIBTARGET) + echo making $(LIBTARGET) + tlib "$(LIBTARGET)" /P512 @&&! ++$(OBJECTS:.obj =.obj +) ! -.$(SRCSUFF).obj: - bcc32 $(CPPFLAGS) -c {$< } - -.c.obj: - bcc32 $(CPPFLAGS) -P- -c {$< } - clean: - -erase *.obj - -erase *.exe - -erase *.res - -erase *.map - -erase *.rws - -erase $(LIBTARGET) +## -if exist $(OBJ_PATH)\*.obj $(RM) $(OBJ_PATH)\*.obj + -if exist *.res $(RM) *.res + -if exist *.map $(RM) *.map + -if exist *.rws $(RM) *.rws + -if exist $(LIBTARGET) $(RM) $(LIBTARGET) +.$(SRCSUFF).obj: + bcc32 $(CPPFLAGS) -c -n$(OBJ_PATH) {$< } +.c.obj: + bcc32 $(CPPFLAGS) -P- -c -n$(OBJ_PATH) {$< }