Rev | Line | |
---|
[430] | 1 | # | |
---|
| 2 | # o---------------------------------------------------------------------o |
---|
| 3 | # | |
---|
| 4 | # | MAD makefile - C files selection |
---|
| 5 | # | |
---|
| 6 | # o---------------------------------------------------------------------o |
---|
| 7 | # | |
---|
| 8 | # | Methodical Accelerator Design |
---|
| 9 | # | |
---|
| 10 | # | Copyright (c) 2011+ CERN, mad@cern.ch |
---|
| 11 | # | |
---|
| 12 | # | For more information, see http://cern.ch/mad |
---|
| 13 | # | |
---|
| 14 | # o---------------------------------------------------------------------o |
---|
| 15 | # | |
---|
| 16 | # | $Id$ |
---|
| 17 | # | |
---|
| 18 | |
---|
| 19 | vpath %.h src |
---|
| 20 | vpath %.c src |
---|
| 21 | |
---|
| 22 | CC_DIR := src |
---|
| 23 | CC_HDR := $(notdir $(wildcard src/mad_*.h)) |
---|
| 24 | CC_SRC := $(notdir $(wildcard src/mad_*.c)) |
---|
| 25 | |
---|
| 26 | CC_HDR += SDDS.h madx.h |
---|
| 27 | CC_SRC += |
---|
| 28 | |
---|
| 29 | # files specific compiler flag |
---|
| 30 | mad_gcst.o: CPPFLAGS += -D_VERSION=$(VERSION) \ |
---|
| 31 | -D_VERSION_DATE=$(VERSION_DATE) \ |
---|
| 32 | -D_VERSION_OSTYPE=$(OSTYPE) |
---|
| 33 | |
---|
| 34 | mad_gxx11c.o: CFLAGS += -I/usr/X11/include -I/opt/X11/include \ |
---|
| 35 | $(if $(call eq,$(CCNAME),icc),-diag-disable 161,) |
---|
| 36 | |
---|
| 37 | # special dependency |
---|
| 38 | mad_gcst.o: VERSION |
---|
| 39 | |
---|
| 40 | ####################### |
---|
| 41 | # C dependencies (case not automatic!) |
---|
| 42 | |
---|
| 43 | ifeq ($(CDEP),) |
---|
| 44 | |
---|
| 45 | # all C object files depend on madx.h |
---|
| 46 | %.o: madx.h |
---|
| 47 | |
---|
| 48 | endif |
---|
| 49 | |
---|
| 50 | # end of makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.