[code]
PROG := _test_keyword_extractor
SRCS := g_keyword_extractor.c _test_keyword_extractor.c
DEPS := generic
OBJS := ${SRCS:%.c=%.o}
# Compiler and flags
CC := g++
LD := g++
INCLUDE_DIR := /home/rush/Studio/generic-dist/include
LIB_DIR := /home/rush/Studio/generic-dist/lib
CXX_FLAGS := -O2 $(INCLUDE_DIR:%=-I%)
LINK_FLAGS := $(LIB_DIR:%=-L%) $(DEPS:%=-l%)
all: $(PROG)
$(PROG): $(OBJS)
$(LD) -o $(PROG) $(OBJS) $(LINK_FLAGS)
rm $(OBJS)
%.o: %.c
$(CC) -c $< -o $@ $(CXX_FLAGS)
clean:
rm $(OBJS) $(PROGS)
[/code]
PROG := _test_keyword_extractor
SRCS := g_keyword_extractor.c _test_keyword_extractor.c
DEPS := generic
OBJS := ${SRCS:%.c=%.o}
# Compiler and flags
CC := g++
LD := g++
INCLUDE_DIR := /home/rush/Studio/generic-dist/include
LIB_DIR := /home/rush/Studio/generic-dist/lib
CXX_FLAGS := -O2 $(INCLUDE_DIR:%=-I%)
LINK_FLAGS := $(LIB_DIR:%=-L%) $(DEPS:%=-l%)
all: $(PROG)
$(PROG): $(OBJS)
$(LD) -o $(PROG) $(OBJS) $(LINK_FLAGS)
rm $(OBJS)
%.o: %.c
$(CC) -c $< -o $@ $(CXX_FLAGS)
clean:
rm $(OBJS) $(PROGS)
[/code]