blob: ad0152d34e2b52c75b6d91d5a84863ac7dbdb6bf [file] [log] [blame]
TARGET = ocean_ncp
OBJS = main.o jacobcalc.o laplacalc.o \
slave1.o slave2.o multi.o
LDFLAGS += -lpthread -lm
MACROS = ../../../null_macros/c.m4.null.pthread
x = *
ifdef version
ifeq "$(version)" "IN_PARSEC"
PREFIX=${PARSECDIR}/ext/splash2/apps/${TARGET}/inst/${PARSECPLAT}
MACROS = ../../../../null_macros/c.m4.null.pthread
endif
endif
$(TARGET): $(OBJS)
$(CC) $(OBJS) -o $(TARGET) $(LDFLAGS)
install:
mkdir -p $(PREFIX)/bin
cp -f $(TARGET) $(PREFIX)/bin/$(TARGET)
cp -f run.sh $(PREFIX)/bin/run.sh
clean:
rm -rf *.c *.h *.o $(TARGET)
.SUFFIXES:
.SUFFIXES: .o .c .C .h .H
.H.h:
$(M4) ${MACROS} $*.H > $*.h
.C.c:
$(M4) $(MACROS) $*.C > $*.c
.c.o:
$(CC) -c $(CFLAGS) $*.c
.C.o:
$(M4) $(MACROS) $*.C > $*.c
$(CC) -c $(CFLAGS) $*.c
decs.h: decs.H
jacobcalc.c: decs.h
main.c: decs.h
slave1.c: decs.h
laplacalc.c: decs.h
multi.c : decs.h
slave2.c: decs.h