Commit 42a63e402b799adc2341c704dfb58effdc3e5a98

Authored by Perry Werneck
1 parent 1863d3b6
Exists in master and in 2 other branches develop, macos

Small updates on Makefile.

Showing 2 changed files with 15 additions and 24 deletions   Show diff stats
Makefile.in
... ... @@ -46,7 +46,7 @@ SOURCES= \
46 46 $(wildcard src/core/properties/*.c) \
47 47 $(wildcard src/selection/*.c) \
48 48 $(wildcard src/network_modules/*.c) \
49   - $(BASEDIR)/.tmp/$(LIBNAME)/fallbacks.c \
  49 + $(BUILDDIR)/.tmp/$(LIBNAME)/fallbacks.c \
50 50 $(foreach MODULE, $(NETWORK_MODULES), $(wildcard src/network_modules/$(MODULE)/*.c))
51 51  
52 52 TEST_SOURCES= \
... ... @@ -87,32 +87,25 @@ sysconfdir=@sysconfdir@
87 87 datadir=$(datarootdir)/$(PRODUCT_NAME)
88 88 confdir=$(sysconfdir)/$(PRODUCT_NAME)
89 89  
90   -BASEDIR=@BASEDIR@
  90 +BUILDDIR=@BUILDDIR@
91 91  
92   -POTDIR=$(BASEDIR)/.pot
  92 +POTDIR=$(BUILDDIR)/.pot
93 93  
94   -OBJDIR=$(BASEDIR)/.obj
  94 +OBJDIR=$(BUILDDIR)/.obj
95 95 OBJDBG=$(OBJDIR)/Debug
96 96 OBJRLS=$(OBJDIR)/Release
97 97  
98   -BINDIR=$(BASEDIR)/.bin
  98 +BINDIR=$(BUILDDIR)/.bin
99 99 BINDBG=$(BINDIR)/Debug
100 100 BINRLS=$(BINDIR)/Release
101 101  
102 102 #---[ Rules ]----------------------------------------------------------------------------
103 103  
104   -DEPENDS= \
105   - Makefile \
106   - src/include/*.h \
107   - src/include/lib3270/*.h \
108   - src/include/@OSNAME@/lib3270/*.h \
109   - $(BASEDIR)/src/include/lib3270/actions.h
110   -
111 104 CFLAGS= \
112 105 @CFLAGS@ \
113 106 -g \
114   - -I$(BASEDIR)/src/include \
115   - -I$(BASEDIR)/src/include/@OSNAME@ \
  107 + -Isrc/include \
  108 + -Isrc/include/@OSNAME@ \
116 109 @LIBSSL_CFLAGS@ \
117 110 @LDAP_CFLAGS@ \
118 111 @LIBCURL_CFLAGS@
... ... @@ -131,9 +124,8 @@ LIBS= \
131 124 #---[ Debug Rules ]----------------------------------------------------------------------
132 125  
133 126 $(OBJDBG)/%.o: \
134   - %.c \
135   - $(DEPENDS)
136   -
  127 + %.c
  128 +
137 129 @echo $< ...
138 130 @$(MKDIR) $(dir $@)
139 131  
... ... @@ -158,8 +150,7 @@ $(OBJDBG)/%.o: \
158 150 #---[ Release Rules ]--------------------------------------------------------------------
159 151  
160 152 $(OBJRLS)/%.o: \
161   - %.c \
162   - $(DEPENDS)
  153 + %.c
163 154  
164 155 @echo $< ...
165 156 @$(MKDIR) $(dir $@)
... ... @@ -232,7 +223,7 @@ all-windows: \
232 223  
233 224 @$(INSTALL_DATA) \
234 225 $(BINRLS)/$(LIBNAME).def \
235   - $(BASEDIR)/win
  226 + $(BUILDDIR)/win
236 227  
237 228 all-linux: \
238 229 $(BINRLS)/$(SONAME) \
... ... @@ -441,7 +432,7 @@ install-windows-dev: \
441 432  
442 433 #---[ Misc Targets ]---------------------------------------------------------------------
443 434  
444   -$(BASEDIR)/.tmp/$(LIBNAME)/fallbacks.c: \
  435 +$(BUILDDIR)/.tmp/$(LIBNAME)/fallbacks.c: \
445 436 src/core/X3270.xad \
446 437 $(wildcard src/mkfb/*.c)
447 438  
... ... @@ -452,7 +443,7 @@ $(BASEDIR)/.tmp/$(LIBNAME)/fallbacks.c: \
452 443  
453 444 @$(HOST_CC) \
454 445 -g \
455   - -I$(BASEDIR)/src/include \
  446 + -Isrc/include \
456 447 -o $(BINDIR)/mkfb@EXEEXT@ \
457 448 $(wildcard src/mkfb/*.c)
458 449  
... ... @@ -529,7 +520,7 @@ clean: \
529 520 cleanDebug \
530 521 cleanRelease
531 522  
532   - @rm -fr $(BASEDIR)/.tmp/$(LIBNAME)
  523 + @rm -fr $(BUILDDIR)/.tmp/$(LIBNAME)
533 524 @rm -fr $(POTDIR)/$(LIBNAME)
534 525 @rm -f locale/*.pot
535 526  
... ...
configure.ac
... ... @@ -666,7 +666,7 @@ dnl Directory config
666 666 dnl ---------------------------------------------------------------------------
667 667  
668 668 AC_ARG_WITH([build-dir], [AS_HELP_STRING([--with-build-dir], [Setup build path])], [ app_cv_buildir="$withval" ],[ app_cv_buildir="$ac_pwd" ])
669   -AC_SUBST(BASEDIR,$app_cv_buildir)
  669 +AC_SUBST(BUILDDIR,$app_cv_buildir)
670 670  
671 671 dnl ---------------------------------------------------------------------------
672 672 dnl Configure which files to generate.
... ...