|
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.2 KB
|
| Line | |
|---|
| 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 = molrender
|
|---|
| 12 |
|
|---|
| 13 | CXXSRC = main.cc
|
|---|
| 14 | CSRC =
|
|---|
| 15 | INC =
|
|---|
| 16 |
|
|---|
| 17 | DEPENDINCLUDE = $(INC)
|
|---|
| 18 |
|
|---|
| 19 | BINOBJ = $(CXXSRC:%.cc=%.o) $(CSRC:%.c=%.o)
|
|---|
| 20 |
|
|---|
| 21 | DISTFILES = $(CXXSRC) $(CSRC) $(INC) Makefile LIBS.h molrender.in
|
|---|
| 22 |
|
|---|
| 23 | default:: molrender
|
|---|
| 24 |
|
|---|
| 25 | ifeq ($(HAVE_SC_SRC_LIB_CHEMISTRY_CCA),yes)
|
|---|
| 26 | DEFINES += -DHAVE_CHEMISTRY_CCA
|
|---|
| 27 | endif
|
|---|
| 28 |
|
|---|
| 29 | LIBS := $(shell $(LISTLIBS) $(INCLUDE) $(DEFINES) $(SRCDIR)/LIBS.h)
|
|---|
| 30 |
|
|---|
| 31 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalRules
|
|---|
| 32 |
|
|---|
| 33 | molrender: $(BINOBJ) $(LIBS)
|
|---|
| 34 | $(LTLINK) $(LD) $(LDFLAGS) -o $@ $^ $(SYSLIBS) $(LTLINKBINOPTS)
|
|---|
| 35 |
|
|---|
| 36 | install:: molrender
|
|---|
| 37 | $(INSTALL) $(INSTALLDIROPT) $(installroot)$(bindir)
|
|---|
| 38 | $(LTINST) $(INSTALL) $(INSTALLBINOPT) $< $(installroot)$(bindir)
|
|---|
| 39 | cd $(TOPDIR); CONFIG_FILES=src/bin/molrender/tkmolrender CONFIG_HEADERS= ./config.status
|
|---|
| 40 | $(INSTALL) $(INSTALLBINOPT) tkmolrender $(installroot)$(bindir)
|
|---|
| 41 | /bin/rm -f tkmolrender
|
|---|
| 42 |
|
|---|
| 43 | clean::
|
|---|
| 44 | /bin/rm -f molrender
|
|---|
| 45 |
|
|---|
| 46 | distclean::
|
|---|
| 47 | /bin/rm -f molrender
|
|---|
| 48 |
|
|---|
| 49 | $(BINOBJ:.o=.d): $(DEPENDINCLUDE)
|
|---|
| 50 | ifneq ($(DODEPEND),no)
|
|---|
| 51 | include $(BINOBJ:.o=.d)
|
|---|
| 52 | endif
|
|---|
| 53 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.