Skip to content

Commit

Permalink
clean Makefile.am
Browse files Browse the repository at this point in the history
  • Loading branch information
plavin committed Aug 9, 2024
1 parent 32617c2 commit 668a9a2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sst/elements/ariel/api/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
if SST_USE_ARIEL_MPI
CFLAGS+=-fopenmp $(ARIEL_MPI_CFLAGS)
CC_LOCAL = $(ARIEL_MPICC)
CFLAGS_LOCAL = -fopenmp $(ARIEL_MPI_CFLAGS)
else
CC_LOCAL = $(CC)
CFLAGS_LOCAL =
endif

all-local: libarielapi.so libarielapi.a

libarielapi.so: arielapi.c arielapi.h
$(CC_LOCAL) -DENABLE_ARIEL_MPI $(AM_CFLAGS) $(ARIEL_MPI_CFLAGS) -fPIC -shared -o libarielapi.so arielapi.c -fopenmp
$(CC_LOCAL) $(CFLAGS_LOCAL) -fPIC -shared -o libarielapi.so arielapi.c

arielapi.o: arielapi.c arielapi.h
$(CC_LOCAL) -DENABLE_ARIEL_MPI $(AM_CFLAGS) $(ARIEL_MPI_CFLAGS) -c -o arielapi.o arielapi.c -fopenmp
$(CC_LOCAL) $(CFLAGS_LOCAL) -c -o arielapi.o arielapi.c

libarielapi.a: arielapi.o
ar rcs $@ $^

clean-local:
rm arielapi.o libarielapi.a libarielapi.so
rm -f arielapi.o libarielapi.a libarielapi.so

0 comments on commit 668a9a2

Please sign in to comment.