# 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
lib: $(LIBTARGET)
-$(LIBTARGET): $(OBJECTS)
- -erase $(LIBTARGET)
- tlib $(LIBTARGET) /P512 @&&!
+$(LIBTARGET): $(OBJECTS)
+ -if exist $(LIBTARGET) $(RM) $(LIBTARGET)
+ echo making $(LIBTARGET)
+ tlib "$(LIBTARGET)" /P512 @&&!
+$(OBJECTS:.obj =.obj +)
!
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 -o$(OBJ_PATH)\$(<B).obj {$< }
+.c.obj:
+ bcc32 $(CPPFLAGS) -P- -c -o$(OBJ_PATH)\$(<B).obj {$< }