|
Last change
on this file since 666f70 was 5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago |
|
Initial commit based on 3.0.0alpha (here claimed as 2.4).
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Rev | Line | |
|---|
| [5d30c1] | 1 | TOPDIR=../../..
|
|---|
| 2 | ifndef SRCDIR
|
|---|
| 3 | SRCDIR=$(shell pwd)
|
|---|
| 4 | endif
|
|---|
| 5 |
|
|---|
| 6 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalMakefile
|
|---|
| 7 | include $(TOPDIR)/lib/Makedirlist
|
|---|
| 8 | INCLUDE += -I. -I$(SRCDIR)
|
|---|
| 9 | CXXINCLUDE += -I. -I$(SRCDIR)
|
|---|
| 10 |
|
|---|
| 11 | TARGET_TO_MAKE = scls
|
|---|
| 12 |
|
|---|
| 13 | CXXSRC = scls.cc
|
|---|
| 14 | CSRC =
|
|---|
| 15 | INC =
|
|---|
| 16 |
|
|---|
| 17 | DEPENDINCLUDE = $(INC)
|
|---|
| 18 |
|
|---|
| 19 | BINOBJ = $(CXXSRC:%.cc=%.$(OBJSUF)) $(CSRC:%.c=%.$(OBJSUF))
|
|---|
| 20 |
|
|---|
| 21 | DISTFILES = $(CXXSRC) $(CSRC) $(INC) Makefile LIBS.h
|
|---|
| 22 |
|
|---|
| 23 | default:: scls
|
|---|
| 24 |
|
|---|
| 25 | ifeq ($(HAVE_SC_SRC_LIB_CHEMISTRY_CCA),yes)
|
|---|
| 26 | XDEF += -DHAVE_CHEMISTRY_CCA
|
|---|
| 27 | endif
|
|---|
| 28 |
|
|---|
| 29 | LIBS := $(shell $(LISTLIBS) $(INCLUDE) $(XDEF) $(SRCDIR)/LIBS.h)
|
|---|
| 30 |
|
|---|
| 31 | #################################################################
|
|---|
| 32 |
|
|---|
| 33 | default:: $(DEPENDINCLUDE)
|
|---|
| 34 |
|
|---|
| 35 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalRules
|
|---|
| 36 |
|
|---|
| 37 | scls: $(BINOBJ) $(LIBS)
|
|---|
| 38 | $(LTLINK) $(LD) $(LDFLAGS) -o $@ $^ $(SYSLIBS) $(LTLINKBINOPTS)
|
|---|
| 39 |
|
|---|
| 40 | install:: scls
|
|---|
| 41 | $(INSTALL) $(INSTALLDIROPT) $(installroot)$(bindir)
|
|---|
| 42 | $(LTINST) $(INSTALL) $(INSTALLBINOPT) $< $(installroot)$(bindir)
|
|---|
| 43 |
|
|---|
| 44 | clean::
|
|---|
| 45 | /bin/rm -f scls
|
|---|
| 46 |
|
|---|
| 47 | distclean::
|
|---|
| 48 | /bin/rm -f scls
|
|---|
| 49 |
|
|---|
| 50 | #################################################################
|
|---|
| 51 |
|
|---|
| 52 | $(BINOBJ:.$(OBJSUF)=.d): $(DEPENDINCLUDE)
|
|---|
| 53 | ifneq ($(DODEPEND),no)
|
|---|
| 54 | include $(BINOBJ:.$(OBJSUF)=.d)
|
|---|
| 55 | endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.