arabica/examples/Utils/Makefile

49 lines
939 B
Makefile
Raw Normal View History

2003-09-09 11:02:00 +02:00
2003-09-10 10:48:31 +02:00
-include ../../Makefile.header
2003-09-09 11:02:00 +02:00
2003-09-10 10:48:31 +02:00
######################################
# ADDITIONAL BUILD FLAGS
INCS_DIRS += -I../..
LIBS_DIRS += -L../../bin
2003-09-09 11:02:00 +02:00
2003-09-10 10:48:31 +02:00
STATIC_LIBS +=
DYNAMIC_LIBS += -lArabica
2003-09-09 11:02:00 +02:00
2003-09-10 10:48:31 +02:00
############
CXXFLAGS += $(INCS_DIRS)
LDFLAGS += $(LIBS_DIRS)
LDFLAGS += $(STATIC_LIBS)
LDFLAGS += $(DYNAMIC_LIBS)
2003-09-09 11:02:00 +02:00
2003-09-10 10:48:31 +02:00
######################################
# SOURCE FILES
2003-09-09 11:02:00 +02:00
TRANSCODE_SRCS = transcode.cpp
TRANSCODE_HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(TRANSCODE_SRCS)))
TRANSCODE_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(TRANSCODE_SRCS)))
2003-09-10 10:48:31 +02:00
######################################
2003-09-09 11:02:00 +02:00
# High level rules
all : transcode
transcode : $(TRANSCODE_OBJS)
2003-09-10 10:48:31 +02:00
$(LD) $(LDFLAGS) -o $@ $(TRANSCODE_OBJS)
$(COPY) transcode ../../bin
2003-09-09 11:02:00 +02:00
2003-09-10 10:48:31 +02:00
######################
2003-09-09 11:02:00 +02:00
# Compile rules
2003-09-10 10:48:31 +02:00
####
2003-09-09 11:02:00 +02:00
%.o : %.cpp
2003-09-10 10:48:31 +02:00
$(CXX) $(CXXFLAGS) -c -o $@ $<
2003-09-09 11:02:00 +02:00
2003-09-10 10:48:31 +02:00
######################
2003-09-09 11:02:00 +02:00
# Cleaning up
clean :
2003-09-10 10:48:31 +02:00
$(REMOVE) $(TRANSCODE_OBJS) core transcode ../../bin/transcode
2003-09-09 11:02:00 +02:00
# End of File