summaryrefslogtreecommitdiff
path: root/sysutils/dptutil/patches/patch-ag
blob: 4fa6bf399488e809db98cf685630b3ef214e84d1 (plain)
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
$NetBSD: patch-ag,v 1.1.1.1 2002/12/09 11:07:20 ad Exp $

diff -ur dptutil/makefile dptutil/makefile
--- odptutil/makefile	Fri Aug 30 19:50:02 2002
+++ dptutil/makefile	Fri Dec  6 09:05:21 2002
@@ -11,11 +11,13 @@
 
 DEBUG_FLAGS=-DDEBUG_ENTER_EXIT
 DEBUG_FLAGS=
-CFLAGS= -O3 -c $(I) -DMESSAGES \
+CFLAGS= -O2 -c $(I) -DMESSAGES \
 	$(extra_cflags) -D_DPT_ACTIVE_ALIGNMENT $(DEBUG_FLAGS) \
 	-Dtrue=1 -Dfalse=0 \
 	-DHORIZONTAL -DNEW_RSC_MGR -DNEW_RSC_HDR \
-	-D_DPT_FLASH
+	-DDEFAULT_PATH=\"@SBINDIR@\" \
+	-D_NBSD_LIBEXEC=\"@SBINDIR@\" \
+	-D_DPT_FLASH -D_DPT_FREE_BSD -Dunix -D__unix__
 
 LINK_FLAGS = -v
 
@@ -140,7 +142,7 @@
 	$(LINK) $(LINK_FLAGS) -o $@ $(OBJS) $(LIBS)
 
 depend :
-	makedepend -DFLG_STAT_LAP=0x20 -D_DPT_UNIX -D_DPT_LINUX -D__linux__ -- ${CFLAGS} -- ${SRCS}
+	makedepend -DFLG_STAT_LAP=0x20 -D_DPT_UNIX -D_DPT_FREE_BSD -- ${CFLAGS} -- ${SRCS}
 
 $(CPP_EXTENSION).o:
 	$(CC) $(CFLAGS) -c $<