Skip to content
Snippets Groups Projects
Makefile 1.11 KiB
Newer Older
JanThorbecke's avatar
JanThorbecke committed
# Makefile

include ../Make_include

########################################################################
# define general include and system library
ALLINC  = -I.
#BLAS libs with Intel compiler
#LIBS += -mkl -L$L -lgenfft $(LIBSM)
#General BLAS library
#LIBS += -L$L -lgenfft $(LIBSM)
#General BLAS library
#LIBS += $(BLAS)

#CFLAGS += -g # -I$(MKLROOT)/include  
#FFLAGS += -g -mcmodel=medium
#LIBS += -lblas -llapack -L$L -lgenfft $(LIBSM) -lc -lm

all: vmar 

PRG = vmar

SRCC =  $(PRG).c \
        atopkge.c \
        docpkge.c \
        getpars.c \
        readReflData.c \
        readDataTD.c \
        writeData.c \
        Marchenko_Iterations.c \
        getFileInfo.c \
        verbosepkg.c \
        name_ext.c \
        wallclock_time.c

OBJC	= $(SRCC:%.c=%.o)

$(PRG):	$(OBJC)
	$(CC) $(LDFLAGS) $(OPTC) $(CFLAGS) -o $(PRG) $(OBJC) $(LIBS)


install: $(PRG)
	cp $(PRG) $B

clean:
		rm -f core $(OBJC) $(OBJM) $(PRG) 

realclean:
		rm -f core $(OBJC) $(OBJM) $(PRG) $B/$(PRG) 


print:	Makefile $(SRC)
	$(PRINT) $?
	@touch print

count:
	@wc $(SRC)

tar:
	@tar cf $(PRG).tar Makefile $(SRC) && compress $(PRG).tar