3 --- Makefile.orig 2001-07-29 05:43:49.000000000 +0000
8 # initial_directory is now set in the config file
9 -mpg123_location := "mpg123"
10 -ogg123_location := "ogg123"
11 -install_directory := "$(HOME)/bin"
12 +mpg123_location := "$(LOCALBASE)/bin/mpg123"
13 +ogg123_location := "$(LOCALBASE)/bin/ogg123"
14 +install_directory := "$(PREFIX)/bin"
17 # Location of config file - Please edit this file before installing
19 -config_file := "$(HOME)/.cmp3rc"
20 +#config_file := "$(HOME)/.cmp3rc"
23 # Uncomment and set if desired
26 ## An ass repository is a nice thing to have. See README
27 -ass_repository := "$(HOME)/.cmp3ass"
28 +#ass_repository := "$(HOME)/.cmp3ass"
30 ## Define this for bufferring or add other parameters to mpg123 and ogg123
31 -mpg123_params := -b 320
32 -ogg123_params := -d oss
33 +#mpg123_params := -b 320
34 +#ogg123_params := -d oss
36 # You need debugging info? Uncomment this and check /tmp/cmp3log
38 @@ -36,15 +36,15 @@ ogg123_params := -d oss
42 -PARAMS= -DCMP3_VER="\$(VERSION)\" -DEXEC_LOC="\$(mpg123_location)\" \
43 - -DCMP3_CONFIG="\$(config_file)\" -DOGG_LOC="\$(ogg123_location)\"
44 +PARAMS= -DCMP3_VER=\"$(VERSION)\" -DEXEC_LOC=\"$(mpg123_location)\" \
45 + -DCMP3_CONFIG=\"$(config_file)\" -DOGG_LOC=\"$(ogg123_location)\"
46 RNMP3PARAMS= -DVERSION="\$(VERSION)\"
47 # Something for me and my cd changer, you definately don't want it as it
48 # stands. Change the code to do something else you want it to do...
50 -LIBS= -lform -lncurses
51 -CFLAGS= -g -O -Inevlib
53 +LIBS= $(LDFLAGS) -lform -lncurses
56 OBJS= cmp3common.o cmp3fileio.o cmp3manager.o cmp3curses.o \
57 cmp3llist.o cmp3main.o cmp3listfiles.o cmp3playlist.o cmp3volume.o \
58 cmp3general.o cmp3id3.o
59 @@ -60,6 +60,7 @@ PARAMS += -DEXEC_PARAMS="$(foreach token
60 PARAMS += -DOGG_PARAMS="$(foreach token, $(ogg123_params),\"$(token)\",)"
62 PARAMS += -DEXEC_PARAMS=\"\",
63 +PARAMS += -DOGG_PARAMS=\"\",
66 RNMP3PARAMS += -DSPACEIT
67 @@ -87,7 +88,7 @@ cmp3: lib $(OBJS)
68 $(CC) $(CFLAGS) $(OBJS) nevlib/libnev.a $(LIBS) -o cmp3
71 - @$(MAKE) -C nevlib lib
72 + @$(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" -C nevlib lib
75 @$(MAKE) -C nevlib clean