aboutsummaryrefslogtreecommitdiff
path: root/news/husky-msged/files/patch-Makefile
blob: dec342acd9cecb6b7dc40aec67b8cbd99172a186 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- Makefile.orig	Sat Feb 18 00:57:56 2006
+++ Makefile	Sun Nov 12 18:51:39 2006
@@ -8,10 +8,10 @@
 endif
 
 ifeq ($(DEBUG), 1)
-  CFLAGS=$(WARNFLAGS) $(DEBCFLAGS) -I$(INCDIR)
+  CFLAGS=$(WARNFLAGS) $(DEBCFLAGS) -I$(INCDIR) -I$(LOCALBASE)/include
   LFLAGS=$(DEBLFLAGS)
 else
-  CFLAGS=$(WARNFLAGS) $(OPTCFLAGS) -I$(INCDIR)
+  CFLAGS=$(WARNFLAGS) $(OPTCFLAGS) -I$(INCDIR) -I$(LOCALBASE)/include
   LFLAGS=$(OPTLFLAGS)
 endif
 
@@ -19,15 +19,15 @@
   MSGEDCFG=\"$(CFGDIR)/msged.cfg\"
 endif
 
-CDEFS=-D$(OSTYPE) -DUSE_MSGAPI -DUSE_FIDOCONFIG -DUNAME=\"$(UNAME)\" \
+CDEFS=-D$(OSTYPE) -DUSE_MSGAPI -DUSE_CURSES -DUSE_FIDOCONFIG -DUNAME=\"$(UNAME)\" \
       $(ADDCDEFS) -DREADMAPSDAT=\"$(CFGDIR)/readmaps.dat\" \
       -DWRITMAPSDAT=\"$(CFGDIR)/writmaps.dat\" \
       -DDEFAULT_CONFIG_FILE=$(MSGEDCFG)
 
 ifeq ($(SHORTNAME), 1)
-  LIBS= -L$(LIBDIR) -lfidoconf -lsmapi
+  LIBS= -L$(LIBDIR) -L$(LOCALBASE)/lib -lfidoconf -lsmapi
 else
-  LIBS= -L$(LIBDIR) -lfidoconfig -lsmapi
+  LIBS= -L$(LIBDIR) -L$(LOCALBASE)/lib -lfidoconfig -lsmapi
 endif
 
 TARGET=	msged$(EXE)
@@ -127,7 +127,7 @@
 	$(CC) $(LFLAGS) -o testcons$(EXE) testcons$(OBJ) $(LIBS) $(OSLIBS)
 endif
 
-msghelp.dat: msghelp.src
+msghelp.dat: msghelp.src $(TARGET)
 	.$(DIRSEP)$(TARGET) -hc msghelp.src msghelp.dat
 
 clean: