]>
Commit | Line | Data |
---|---|---|
dbda9e86 JS |
1 | # |
2 | # File: makelib.b32 | |
3 | # Author: Julian Smart | |
4 | # Created: 1999 | |
5 | # Updated: | |
6 | # Copyright: | |
7 | # | |
8 | # Include file for libraries. Set LIBTARGET and OBJECTS | |
9 | # before including this file. | |
10 | ||
dbda9e86 | 11 | |
7d5818e0 BM |
12 | lib: $(LIBTARGET) |
13 | ||
2cedc12a CE |
14 | $(LIBTARGET): $(OBJECTS) |
15 | -if exist $(LIBTARGET) $(RM) $(LIBTARGET) | |
16 | echo making $(LIBTARGET) | |
20a2bdc9 | 17 | tlib "$(LIBTARGET)" /P512 @&&! |
7d5818e0 | 18 | +$(OBJECTS:.obj =.obj +) |
dbda9e86 JS |
19 | ! |
20 | ||
dbda9e86 | 21 | clean: |
2cedc12a CE |
22 | ## -if exist $(OBJ_PATH)\*.obj $(RM) $(OBJ_PATH)\*.obj |
23 | -if exist *.res $(RM) *.res | |
24 | -if exist *.map $(RM) *.map | |
25 | -if exist *.rws $(RM) *.rws | |
26 | -if exist $(LIBTARGET) $(RM) $(LIBTARGET) | |
dbda9e86 | 27 | |
2cedc12a CE |
28 | .$(SRCSUFF).obj: |
29 | bcc32 $(CPPFLAGS) -c -o$(OBJ_PATH)\$(<B).obj {$< } | |
dbda9e86 | 30 | |
2cedc12a CE |
31 | .c.obj: |
32 | bcc32 $(CPPFLAGS) -P- -c -o$(OBJ_PATH)\$(<B).obj {$< } |