Commit 4aa7a83f3e7228c43c71860321a515dbf13cb631

Authored by Perry Werneck
1 parent f84e70e0

Ajustes para uso como sub-projeto.

Showing 2 changed files with 5 additions and 2 deletions   Show diff stats
@@ -93,7 +93,9 @@ $(OBJDBG)/%.o: \ @@ -93,7 +93,9 @@ $(OBJDBG)/%.o: \
93 @$(MKDIR) `dirname $@` 93 @$(MKDIR) `dirname $@`
94 @$(CC) \ 94 @$(CC) \
95 $(CFLAGS) \ 95 $(CFLAGS) \
96 - -Wall -Wextra -fstack-check -DDEBUG=1 \ 96 + -Wall -Wextra -fstack-check \
  97 + -DDEBUG=1 \
  98 + -DDATADIR=$(BASEDIR) \
97 -o $@ -c $< 99 -o $@ -c $<
98 100
99 #---[ Release Rules ]-------------------------------------------------------------------- 101 #---[ Release Rules ]--------------------------------------------------------------------
@@ -107,6 +109,7 @@ $(OBJRLS)/%.o: \ @@ -107,6 +109,7 @@ $(OBJRLS)/%.o: \
107 @$(CC) \ 109 @$(CC) \
108 $(CFLAGS) \ 110 $(CFLAGS) \
109 -DNDEBUG=1 \ 111 -DNDEBUG=1 \
  112 + -DDATADIR=$(datarootdir)/pw3270 \
110 -o $@ -c $< 113 -o $@ -c $<
111 114
112 #---[ Release Targets ]------------------------------------------------------------------ 115 #---[ Release Targets ]------------------------------------------------------------------
@@ -18,7 +18,7 @@ if test $? != 0 ; then @@ -18,7 +18,7 @@ if test $? != 0 ; then
18 exit -1 18 exit -1
19 fi 19 fi
20 20
21 -mkdir scripts 21 +mkdir -p scripts
22 automake --add-missing 2> /dev/null | true 22 automake --add-missing 2> /dev/null | true
23 23
24 cd "$olddir" 24 cd "$olddir"