CCSDS_study project
This commit is contained in:
25
netzob-030/lib/libRelation/algorithms/Makefile
Normal file
25
netzob-030/lib/libRelation/algorithms/Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
DEBUG=no
|
||||
SRC=rel_test.c \
|
||||
rel_equality.c \
|
||||
rel_size.c
|
||||
OBJ=$(SRC:.c=.o)
|
||||
SOBJ=$(OBJ:.o=.so)
|
||||
CFLAGS=-fPIC -I../../includes
|
||||
LDFLAGS=-L/usr/lib
|
||||
|
||||
ifeq ($(DEBUG),yes)
|
||||
CFLAGS+= -g -D__DEBUG__
|
||||
endif
|
||||
|
||||
all: $(SOBJ)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c -pthread $(CFLAGS) $< -o $@
|
||||
|
||||
%.so: %.o
|
||||
$(CC) -shared -Wl,-soname,$@ $(LDFLAGS) $< -o $@
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJ) $(SOBJ)
|
||||
|
||||
re: clean all
|
||||
Reference in New Issue
Block a user