Lines 1-25
Link Here
|
1 |
--- Makefile.orig 2021-11-20 16:29:49 UTC |
1 |
--- Makefile.orig 2022-04-07 23:53:42 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -6,23 +6,22 @@ |
3 |
@@ -6,21 +6,16 @@ |
4 |
OUTPUT= portconfig |
4 |
OUTPUT= portconfig |
5 |
SOURCES= portconfig.c |
5 |
SOURCES= portconfig.c |
6 |
OBJECTS= ${SOURCES:.c=.o} |
6 |
OBJECTS= ${SOURCES:.c=.o} |
7 |
-LIBPATH= ${.CURDIR}/bsddialog/lib |
7 |
-LIBPATH= ${.CURDIR}/bsddialog/lib |
8 |
LIBBSDDIALOG= ${LIBPATH}/libbsddialog.so |
8 |
-LIBBSDDIALOG= ${LIBPATH}/libbsddialog.so |
9 |
|
9 |
|
10 |
-CFLAGS= -Wall -I${LIBPATH} |
10 |
-CFLAGS+= -I${LIBPATH} -std=gnu99 -Wall -Wextra |
11 |
-LDFLAGS= -Wl,-rpath=${LIBPATH} -L${LIBPATH} -lbsddialog |
11 |
-LDFLAGS+= -Wl,-rpath=${LIBPATH} -L${LIBPATH} -lbsddialog |
12 |
+CFLAGS+= -Wall |
12 |
+CFLAGS+= -std=gnu99 -Wall -Wextra |
13 |
+LDFLAGS+= -L/usr/lib -Wl,-Bstatic -v -Wl,-whole-archive -lbsddialog -Wl,-no-whole-archive -lformw -lncursesw -ltinfow -Wl,-Bdynamic -Wl,--export-dynamic |
13 |
+LDFLAGS+= -L/usr/lib -Wl,-Bstatic -v -Wl,-whole-archive -lbsddialog -Wl,-no-whole-archive -lformw -lncursesw -ltinfow -Wl,-Bdynamic -Wl,--export-dynamic |
14 |
|
14 |
|
15 |
-BINDIR= /usr/local/bin |
|
|
16 |
+BINDIR= ${PREFIX}/bin |
17 |
MAN= ${OUTPUT}.1 |
18 |
GZIP= gzip -cn |
19 |
-MANDIR= /usr/local/share/man/man1 |
20 |
+MANDIR= ${PREFIX}/share/man/man1 |
21 |
|
22 |
INSTALL= install |
23 |
RM= rm -f |
15 |
RM= rm -f |
24 |
|
16 |
|
25 |
all : ${OUTPUT} |
17 |
all : ${OUTPUT} |
Lines 27-44
Link Here
|
27 |
-${OUTPUT}: ${LIBBSDDIALOG} ${OBJECTS} |
19 |
-${OUTPUT}: ${LIBBSDDIALOG} ${OBJECTS} |
28 |
+${OUTPUT}: ${OBJECTS} |
20 |
+${OUTPUT}: ${OBJECTS} |
29 |
${CC} ${LDFLAGS} ${OBJECTS} -o ${.PREFIX} |
21 |
${CC} ${LDFLAGS} ${OBJECTS} -o ${.PREFIX} |
|
|
22 |
- |
23 |
-${LIBBSDDIALOG}: |
24 |
- make -C ${LIBPATH} |
30 |
|
25 |
|
31 |
${LIBBSDDIALOG}: |
26 |
.c.o: |
32 |
@@ -36,9 +35,9 @@ ${LIBBSDDIALOG}: |
|
|
33 |
${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} |
27 |
${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} |
34 |
|
|
|
35 |
install: |
36 |
- ${INSTALL} -s -m 555 ${OUTPUT} ${BINDIR} |
37 |
- ${GZIP} ${MAN} > ${MAN}.gz |
38 |
- ${INSTALL} -m 444 ${MAN}.gz ${MANDIR} |
39 |
+ ${INSTALL} -s -m 555 ${OUTPUT} ${DESTDIR}${BINDIR} |
40 |
+ #${GZIP} ${MAN} > ${MAN}.gz |
41 |
+ #${INSTALL} -m 444 ${MAN}.gz ${MANDIR} |
42 |
|
43 |
unistall: |
44 |
${RM} ${BINDIR}/${OUTPUT} |