File: Makefile.extlib

package info (click to toggle)
libstatgen 1.0.15-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,588 kB
  • sloc: cpp: 49,624; ansic: 1,408; makefile: 320; sh: 60
file content (35 lines) | stat: -rw-r--r-- 1,350 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
# Your Makefile should include this Makefile after defining:
#   EXE - the library name
#   TOOLBASE - the base filename for files with .h & .cpp versions
#   SRCONLY - any cpp files without headers.
#   HDRONLY - any header files without cpp
#   COMPILE_ANY_CHANGE - any files that should be compiled if any of the
#                        files change.  These files MUST also be
#                        included in TOOLBASE or SRCONLY.  Here they are
#                        just the base name without the extension.
#   VERSION - if not version in Makefile.include
#   BINDIR if it is not ../lib
#   TESTDIR if it is not ../test
#   USER_INCLUDES if any additional directories need to be included to pick up
#                 header files (example: USER_INCLUDES=-ImyDir1 -ImyDir2)
EXE ?=
BINDIR ?= ../lib
TESTDIR ?= ../test

MAKEFILES_PATH := $(dir $(lastword $(MAKEFILE_LIST)))
include $(MAKEFILES_PATH)Makefile.ext

# Set the build commands for library
OPT_BUILD     = ar -cr $(PROG_OPT)     $(OBJECTS_OPT)
DEBUG_BUILD   = ar -cr $(PROG_DEBUG)   $(OBJECTS_DEBUG)
PROFILE_BUILD = ar -cr $(PROG_PROFILE) $(OBJECTS_PROFILE)

specific_clean :
	-$(AR) d $(PROG_OPT) $(OBJECTS_OPT)
	-$(RANLIB) $(PROG_OPT)
	-$(AR) d $(PROG_DEBUG) $(OBJECTS_DEBUG)
	-$(RANLIB) $(PROG_DEBUG)
	-$(AR) d $(PROG_PROFILE) $(OBJECTS_PROFILE)
	-$(RANLIB) $(PROG_PROFILE)