source: PSPA/madxPSPA/Makefile_c @ 476

Last change on this file since 476 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 1.1 KB
Line 
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
19vpath %.h src
20vpath %.c src
21
22CC_DIR := src
23CC_HDR := $(notdir $(wildcard src/mad_*.h))
24CC_SRC := $(notdir $(wildcard src/mad_*.c))
25
26CC_HDR += SDDS.h madx.h
27CC_SRC +=
28
29# files specific compiler flag
30mad_gcst.o: CPPFLAGS += -D_VERSION=$(VERSION) \
31                        -D_VERSION_DATE=$(VERSION_DATE) \
32                        -D_VERSION_OSTYPE=$(OSTYPE)
33
34mad_gxx11c.o: CFLAGS += -I/usr/X11/include -I/opt/X11/include \
35                        $(if $(call eq,$(CCNAME),icc),-diag-disable 161,)
36
37# special dependency
38mad_gcst.o: VERSION
39
40#######################
41# C dependencies (case not automatic!)
42
43ifeq ($(CDEP),)
44
45# all C object files depend on madx.h
46%.o: madx.h
47
48endif
49
50# end of makefile
Note: See TracBrowser for help on using the repository browser.