mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
38 lines
821 B
Makefile
38 lines
821 B
Makefile
|
|
-include ../../Makefile.header
|
|
|
|
######################################
|
|
# ADDITIONAL BUILD FLAGS
|
|
INCS_DIRS += -I../..
|
|
LIBS_DIRS += -L../../bin
|
|
|
|
STATIC_LIBS +=
|
|
DYNAMIC_LIBS += -lArabica
|
|
|
|
######################################
|
|
# SOURCE FILES
|
|
XGREP_SRCS = xgrep.cpp
|
|
XGREP_HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(XGREP_SRCS)))
|
|
XGREP_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(XGREP_SRCS)))
|
|
|
|
######################################
|
|
# High level rules
|
|
all : xgrep
|
|
|
|
xgrep : $(XGREP_OBJS)
|
|
$(LD) $(LDFLAGS) -o $@ $(XGREP_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
|
|
$(COPY) xgrep$(EXESUFFIX) ../../bin
|
|
|
|
######################
|
|
# Compile rules
|
|
####
|
|
-include ../../Makefile.rules
|
|
|
|
######################
|
|
# Cleaning up
|
|
clean :
|
|
$(REMOVE) $(XGREP_OBJS) \
|
|
xgrep$(EXESUFFIX) \
|
|
../../bin/xgrep
|
|
|
|
# End of File
|