-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile.bcc
More file actions
48 lines (37 loc) · 1.22 KB
/
makefile.bcc
File metadata and controls
48 lines (37 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- Mode: makefile -*-
# Copyright (c) 1994-1996 Massachusetts Institute of Technology
# Copyright (c) 1996-2005 Matthew Wall
# -----------------------------------------------------------------------------
!include ../makevars.bcc
!include makefile.sources
CXXFLAGS = $(CXXFLAGS) -I..
STATIC = $(LIB_NAME)
LIB = $(STATIC).lib
all: $(LIB)
# this really sucks, but i have not yet found documentation about the borland
# make or link that will let me avoid the for loop.
$(LIB): $(OBJS)
@for %i in ( $(OBJS) ) do \
$(AR) $(ARFLAGS) $(LIB) +%i
@echo $(LIB_NAME) is now up-to-date
install: install.lib install.hdr
@echo installation complete
install.lib: $(LIB) lib_directories
$(INSTALL) $(LIB) $(LIB_DEST_DIR)
install.hdr: hdr_directories
@for %i in ( $(HDRS) ) do \
$(CP) /Q %i $(HDR_DEST_DIR)\$(LIB_NAME)
@for %i in ( $(TMPL_SRCS) ) do \
$(CP) /Q %i $(HDR_DEST_DIR)\$(LIB_NAME)
lib_directories:
@if not exist $(LIB_DEST_DIR) \
$(MKDIR) $(LIB_DEST_DIR)
hdr_directories:
@if not exist $(HDR_DEST_DIR)\$(LIB_NAME) \
$(MKDIR) $(HDR_DEST_DIR)\$(LIB_NAME)
remove:
$(RM) $(LIB_DEST_DIR)\$(LIB)
$(RM) $(HDR_DEST_DIR)\$(LIB_NAME)
clean:
$(RM) *.obj *.o *.tds
$(RM) $(LIB_NAME).lib