1 export TOPDIR ?= $(CURDIR)/..
2 include $(TOPDIR)/global_config
4 $(shell mkdir -p $(OBJDIR))
5 OBJS = $(OBJDIR)/mplex.o
8 CFLAGS += -I$(LIBZMPEG3)
9 CFLAGS += $(static_incs)
11 LIBS := $(LIBZMPEG3)/$(OBJDIR)/libzmpeg3.a
14 OUTPUT := $(OBJDIR)/mplexlo
16 $(OUTPUT) all: $(OBJS)
17 @echo $(CXX) -o $(OUTPUT) $(OBJS)
18 @$(CXX) -o $(OUTPUT) $(OBJS) $(LIBS)
21 $(CXX) -c $(CFLAGS) $(subst $(OBJDIR)/,, $*.c) -o $*.o
27 cp $(OUTPUT) $(BINDIR)/.
29 $(OBJDIR)/mplex.o: mplex.c