Skip to content

Commit

Permalink
fix undefined referance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
daTokenizer committed Nov 24, 2016
1 parent 72a4d73 commit 965e9fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ ifndef RMUTIL_LIBDIR
RMUTIL_LIBDIR=rmutil
endif

ifndef SRC_DIR
SRC_DIR=src
endif

all: module.so

module.so: FORCE
$(MAKE) -C ./src
cp ./src/module.so .
$(MAKE) -C ./$(SRC_DIR)
cp ./$(SRC_DIR)/module.so .

clean: FORCE
rm -rf *.xo *.so *.o
rm -rf ./src/*.xo ./src/*.so ./src/*.o
rm -rf ./$(SRC_DIR)/*.xo ./$(SRC_DIR)/*.so ./$(SRC_DIR)/*.o
rm -rf ./$(RMUTIL_LIBDIR)/*.so ./$(RMUTIL_LIBDIR)/*.o ./$(RMUTIL_LIBDIR)/*.a

FORCE:
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ rmutil: FORCE
$(MAKE) -C $(RMUTIL_LIBDIR)

module.so: module.o
$(LD) -o $@ module.o $(SHOBJ_LDFLAGS) $(LIBS) -L$(RMUTIL_LIBDIR) -lrmutil -lc
$(LD) -o $@ module.o $(SHOBJ_LDFLAGS) $(LIBS) -L$(RMUTIL_LIBDIR) -lrmutil -lrt -lc

clean: FORCE
rm -rf *.xo *.so *.o
Expand Down

0 comments on commit 965e9fc

Please sign in to comment.