source: src/bin/scls/Makefile@ 666f70

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).

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