Commit ce13d2db by Andrew Dahl

Fixed make issue - minor changes to Makefile

parent b91b1ee6
Pipeline #1 failed with stage
in 0 seconds
Showing with 3 additions and 3 deletions
......@@ -3,7 +3,7 @@
# Makefile for sam-compiler - CSIS 435
CC=gcc
CFLAGS=-c
CFLAGS=-fPIC -c
LIBS=-lpam -lpam_misc -lxmlrpc_client
LDFLAGS=-shared -Xlinker -x
......@@ -14,7 +14,7 @@ TSTDIR=test
# Source code
SRC=$(SRCDIR)/pam_xmlrpc.c $(LIBDIR)/xmlrpc.c
OBJ=$(SRC:.cpp=.o)
OBJ=$(SRC:.c=.o)
# make options
EXEC=pam_xmlrpc.so
......@@ -29,7 +29,7 @@ all: $(EXEC) $(TEST)
$(EXEC):
$(CC) $(CFLAGS) $(SRC)
$(CC) $(LDFLAGS) -o $(EXEC) $(LIBS)
$(CC) $(LDFLAGS) -o $(EXEC) pam_xmlrpc.o xmlrpc.o $(LIBS)
clean:
rm -rf *.o $(EXEC) $(TEST)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment