Skip to content
Snippets Groups Projects
Commit 9f4c0ef3 authored by xjgomez's avatar xjgomez
Browse files

Fixed ERUN Makefile.

parent 5e2836cf
No related branches found
No related tags found
No related merge requests found
CFLAGS = $(CC_FLAGS) -I$(SRCDIR) $(SLURM_CFLAGS) -fPIC CFLAGS = -fPIC -O2 $(SLURM_CFLAGS) -I$(SRCDIR)
LDFLAGS = -lm LDFLAGS = -lm
######## INSTALLATION ######## INSTALLATION
plug_BINS = erun erun_BINS = erun
erun_PATH = $(DESTDIR)/bin
erun_PERM = 0775
ifdef SLURM_BASE ifdef SLURM_BASE
plug_BINS += earplug.so plug_BINS = earplug.so
endif endif
plug_PATH = $(DESTDIR)/lib plug_PATH = $(DESTDIR)/lib
plug_PERM = 0775 plug_PERM = 0775
...@@ -18,10 +21,10 @@ erun_SRCS = \ ...@@ -18,10 +21,10 @@ erun_SRCS = \
erun_lock.c erun_lock.c
plug_OBJS = \ plug_OBJS = \
$(SRCDIR)/daemon/eard_rapi.o \ $(SRCDIR)/daemon/remote_api/eard_rapi.o \
$(SRCDIR)/daemon/shared_configuration.o \ $(SRCDIR)/daemon/shared_configuration.o \
$(SRCDIR)/global_manager/eargm_rapi.o \ $(SRCDIR)/global_manager/eargm_rapi.o \
$(SRCDIR)/common/libcommon.a $(SRCDIR)/common/libcommon.a
plug_SRCS = \ plug_SRCS = \
slurm_plugin.c \ slurm_plugin.c \
...@@ -43,23 +46,23 @@ plug_HDRS = \ ...@@ -43,23 +46,23 @@ plug_HDRS = \
######## RULES ######## RULES
all: $(plug_BINS) all: $(erun_BINS) $(plug_BINS)
earplug.so: $(plug_SRCS) $(plug_HDRS) earplug.so: $(plug_SRCS) $(plug_HDRS)
$(CC) $(CFLAGS) -shared -o $@ $(plug_SRCS) $(plug_OBJS) $(LDFLAGS) $(CC) $(CC_FLAGS) $(CFLAGS) -shared -o $@ $(plug_SRCS) $(plug_OBJS) $(LDFLAGS)
erun: $(erun_SRCS) $(plug_SRCS) $(plug_HDRS) erun: $(erun_SRCS) $(plug_SRCS) $(plug_HDRS)
$(CC) $(CFLAGS) -DERUN -g -o $@ $(erun_SRCS) $(plug_SRCS) $(plug_OBJS) $(LDFLAGS) $(CC) $(CC_FLAGS) $(CFLAGS) -DERUN -o $@ $(erun_SRCS) $(plug_SRCS) $(plug_OBJS) $(LDFLAGS)
######## OPTIONS ######## OPTIONS
install: plug.ginstall; install: erun.ginstall plug.ginstall;
%.install: ; %.install: ;
clean: plug.gclean rclean; clean: erun.gclean plug.gclean rclean;
######## DEPENDENCIES ######## DEPENDENCIES
include $(SRCDIR)/Makefile.depend include $(SRCDIR)/Makefile.depend
include $(SRCDIR)/Makefile.extra include $(SRCDIR)/Makefile.extra
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment