| 1 |
|
| 2 |
# Jamfile for cgats library |
| 3 |
|
| 4 |
#PREF_CCFLAGS = $(CCOPTFLAG) ; # Turn optimisation on |
| 5 |
PREF_CCFLAGS = $(CCDEBUGFLAG) ; # Debugging flags |
| 6 |
PREF_LINKFLAGS = $(LINKDEBUGFLAG) ; |
| 7 |
|
| 8 |
#if stdio is not wanted in icclib: |
| 9 |
#DEFINES = SEPARATE_STD ; |
| 10 |
|
| 11 |
#Products |
| 12 |
Libraries = libcgats ; |
| 13 |
Headers = cgats.h ; |
| 14 |
|
| 15 |
#Install |
| 16 |
#InstallLib $(DESTDIR)$(PREFIX)/lib : $(Libraries ; |
| 17 |
#InstallFile $(DESTDIR)$(PREFIX)/h : $(Headers) ; |
| 18 |
|
| 19 |
# Stop objects that are in more than one library from being |
| 20 |
# prematurely deleted: |
| 21 |
ObjectKeep cgats pars ; |
| 22 |
|
| 23 |
# CGATS library |
| 24 |
Library libcgats : pars.c cgats.c ; |
| 25 |
|
| 26 |
# Executable support if SEPARATED_STD |
| 27 |
if SEPARATE_STD in $(DEFINES) { |
| 28 |
Objects parsstd.c cgatsstd.c ; |
| 29 |
LINKOBJS = cgatsstd parsstd ; # Link all tests here with these |
| 30 |
} |
| 31 |
|
| 32 |
# Individual stand alone test of parser |
| 33 |
MainVariant pars : pars.c : : STANDALONE_TEST ; |
| 34 |
|
| 35 |
# Individual stand alone test of cgats i/o |
| 36 |
MainVariant cgats : cgats.c : : STANDALONE_TEST : : pars ; |
| 37 |
|