File: makefile.vcpp

package info (click to toggle)
galib 2.4.7-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,216 kB
  • ctags: 3,153
  • sloc: cpp: 23,666; ansic: 520; makefile: 247; sh: 93
file content (46 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (4)
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
# -*- Mode: makefile -*-
# Copyright (c) 1994-1996 Massachusetts Institute of Technology
# Copyright (c) 1996-2005 Matthew Wall
# -----------------------------------------------------------------------------

!include ../makevars.vcpp
!include makefile.sources

CXXFLAGS = $(CXXFLAGS) /I..

STATIC = $(LIB_NAME)
LIB    = $(STATIC).lib

all: $(LIB)

$(LIB): $(OBJS) 
	$(AR) $(ARFLAGS) /out:$(LIB) $?
	@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 *.pdb vc*
	$(RM) $(LIB_NAME).lib