# | # o---------------------------------------------------------------------o # | # | MAD makefile - C files selection # | # o---------------------------------------------------------------------o # | # | Methodical Accelerator Design # | # | Copyright (c) 2011+ CERN, mad@cern.ch # | # | For more information, see http://cern.ch/mad # | # o---------------------------------------------------------------------o # | # | $Id$ # | vpath %.h src vpath %.c src CC_DIR := src CC_HDR := $(notdir $(wildcard src/mad_*.h)) CC_SRC := $(notdir $(wildcard src/mad_*.c)) CC_HDR += SDDS.h madx.h CC_SRC += # files specific compiler flag mad_gcst.o: CPPFLAGS += -D_VERSION=$(VERSION) \ -D_VERSION_DATE=$(VERSION_DATE) \ -D_VERSION_OSTYPE=$(OSTYPE) mad_gxx11c.o: CFLAGS += -I/usr/X11/include -I/opt/X11/include \ $(if $(call eq,$(CCNAME),icc),-diag-disable 161,) # special dependency mad_gcst.o: VERSION ####################### # C dependencies (case not automatic!) ifeq ($(CDEP),) # all C object files depend on madx.h %.o: madx.h endif # end of makefile