# Generated automatically from Makefile.in by configure. #MAKEFILE for cmp3 # $Id: Makefile.in,v 1.1 2001/07/29 05:43:49 ken Exp $ # Set these variables # # initial_directory is now set in the config file mpg123_location := "mpg123" ogg123_location := "ogg123" install_directory := "$(PREFIX)/bin" # # Location of config file - Please edit this file before installing # #config_file := "$(HOME)/.cmp3rc" # # Uncomment and set if desired # ## An ass repository is a nice thing to have. See README #ass_repository := "$(HOME)/.cmp3ass" ## Define this for bufferring or add other parameters to mpg123 and ogg123 mpg123_params := -b 320 ogg123_params := -d oss # You need debugging info? Uncomment this and check /tmp/cmp3log #debugging := 1 # Would you like rnmp3 to create spaced filenames? #filespacing := 1 # # Please don't change these if you want it to work properly # VERSION="2.0pre6" WKGDIR=cmp3-kenrevs PARAMS= -DCMP3_VER="\$(VERSION)\" -DEXEC_LOC="\$(mpg123_location)\" \ -DCMP3_CONFIG="\$(config_file)\" -DOGG_LOC="\$(ogg123_location)\" RNMP3PARAMS= -DVERSION="\$(VERSION)\" # Something for me and my cd changer, you definately don't want it as it # stands. Change the code to do something else you want it to do... #PARAMS +=-DMY_CD LIBS= -lform -lncurses CFLAGS= -fno-common -Inevlib CC= cc OBJS= cmp3common.o cmp3fileio.o cmp3manager.o cmp3curses.o \ cmp3llist.o cmp3main.o cmp3listfiles.o cmp3playlist.o cmp3volume.o \ cmp3general.o cmp3id3.o ifdef ass_repository PARAMS += -DASS_LOC="\$(ass_repository)\" endif ifdef debugging PARAMS += -DCMP3_DEBUG endif ifdef mpg123_params PARAMS += -DEXEC_PARAMS="$(foreach token, $(mpg123_params),\"$(token)\",)" PARAMS += -DOGG_PARAMS="$(foreach token, $(ogg123_params),\"$(token)\",)" else PARAMS += -DEXEC_PARAMS=\"\", endif ifdef filespacing RNMP3PARAMS += -DSPACEIT endif all: rnmp3 cmp3 @echo -e "\n\nCmp3 is ready! Please edit the cmp3rc file and make install.\n" mclean: cleanlib rm -f *.o *~ DEADJOE core clean: mclean rm -f cmp3 rnmp3 cmp3shmdump distclean: clean distcleanlib rm -f config.log config.cache config.status config.h rnmp3: rnmp3.c $(CC) $(CFLAGS) $(RNMP3PARAMS) rnmp3.c -o rnmp3 shmdump: cmp3shmdump.c $(CC) $(CFLAGS) cmp3shmdump.c -o cmp3shmdump cmp3: lib $(OBJS) $(CC) $(CFLAGS) $(OBJS) nevlib/libnev.a $(LIBS) -o cmp3 lib: @$(MAKE) -C nevlib lib cleanlib: @$(MAKE) -C nevlib clean distcleanlib: @$(MAKE) -C nevlib distclean %.o: %.c $(CC) $(CFLAGS) $(PARAMS) -c $< tar: distclean cd ..; tar zcfh cmp3-$(VERSION).tar.gz $(WKGDIR)/; install: rnmp3 cmp3 install -c -s cmp3 $(install_directory)/cmp3 install -c -s rnmp3 $(install_directory)/rnmp3 cp -i cmp3rc $(config_file) ifdef ass_repository @if [ ! -x $(ass_repository) ]; then mkdir $(ass_repository); \ echo mkdir $(ass_repository); fi; endif uninstall: rm -rf $(install_directory)/cmp3 $(install_directory)/rnmp3 ifdef ass_repository @if [ -x $(ass_repository) ]; then rm -ir $(ass_repository); \ fi; endif depend: .depend $(CC) $(CFLAGS) -MM $(OBJS:.o=.c) > .depend include .depend # EOF