## ## Makefile -- Build procedure for mod_mp3 ## # the used tools APXS=apxs APACHECTL=apachectl VERSION = 0.12 DISTNAME = mod_mp3 DISTVNAME = $(DISTNAME)-$(VERSION) SRC = directives.c ice.c load.c mod_mp3.c shout.c utility.c ogg.c common.c id3.c log.c internal_dispatch.c encode.c OBJ = directives.o ice.o load.o mod_mp3.o shout.o utility.o ogg.o common.o id3.o log.o internal_dispatch.o encode.o SHELL = /bin/sh PERL = perl NOOP = $(SHELL) -c true RM_RF = rm -rf SUFFIX = .gz COMPRESS = gzip --best TAR = tar TARFLAGS = cvf PREOP = @$(NOOP) POSTOP = @$(NOOP) TO_UNIX = @$(NOOP) #DEF = -Wall -DDEBUG # the default target all: mod_mp3.so libmodmp3.a # compile the DSO file mod_mp3.so: $(SRC) Makefile $(APXS) -o $@ -c $(DEF) $(INC) $(LIB) $(SRC) # compile the static incase we need to link against it libmodmp3.a: $(OBJS) rm -f $@ ar cr $@ $(OBJS) $(RANLIB) $@ .SUFFIXES: .o .c.o: $(CC) -c $(INCLUDES) $(CFLAGS) $< # install the DSO file into the Apache installation # and activate it in the Apache configuration install: all strip mod_mp3.so $(APXS) -i -a -n 'mp3' mod_mp3.so # cleanup clean: -rm -f *.o mod_mp3.so