308cab7eb5
- Updated package source location on FTP server PR: 22772 Submitted by: MAINTAINER
51 lines
1008 B
Plaintext
51 lines
1008 B
Plaintext
--- Makefile.orig Sun Nov 28 20:08:56 1999
|
|
+++ Makefile Sat Nov 11 14:14:53 2000
|
|
@@ -5,24 +5,24 @@
|
|
# very welcome).
|
|
|
|
# for linux
|
|
-DEFS = -DOS_LINUX
|
|
-EXTRA_OBJS = cd_ll_linux.o
|
|
+#DEFS = -DOS_LINUX
|
|
+#EXTRA_OBJS = cd_ll_linux.o
|
|
|
|
# for bsd. only tested on freebsd
|
|
-#DEFS = -DOS_BSD
|
|
-#EXTRA_OBJS = cd_ll_bsd.o
|
|
-
|
|
+DEFS = -DOS_BSD
|
|
+EXTRA_OBJS = cd_ll_bsd.o
|
|
+CDDEVICE=\"/dev/acd0c\"
|
|
|
|
# you shouldn't have to change anything below this line
|
|
|
|
-
|
|
+BINPATH=${PREFIX}/bin/
|
|
OBJS=cd-console.o cd.o $(EXTRA_OBJS)
|
|
LIBS = -lncurses
|
|
|
|
# common
|
|
-CFLAGS=-O2 -Wall $(DEFS)
|
|
+CFLAGS+= $(DEFS)
|
|
#CFLAGS=-g -Wall $(DEFS)
|
|
-CC = gcc
|
|
+#CC = gcc
|
|
|
|
all:
|
|
make cd-console
|
|
@@ -38,10 +38,13 @@
|
|
$(CC) -c cd_ll_linux.cpp $(CFLAGS)
|
|
|
|
cd_ll_bsd.o: cd_ll.h cd_ll_bsd.h cd_ll_bsd.cpp
|
|
- $(CC) -c cd_ll_bsd.cpp $(CFLAGS)
|
|
+ $(CC) -c -DDEVICE=$(CDDEVICE) cd_ll_bsd.cpp $(CFLAGS)
|
|
|
|
cd.o: cd.h cd.cpp
|
|
$(CC) -c cd.cpp $(CFLAGS)
|
|
|
|
clean:
|
|
rm -f $(OBJS) cd-console
|
|
+
|
|
+install:
|
|
+ @$(BSD_INSTALL_PROGRAM) cd-console $(BINPATH)
|