comparison Makefile.in @ 2160:07f1366a724c

Rename config.h(.in) to dwconfig.h and install it with dwcompat. Building modules that use dwcompat requires some of the defines in dwconfig.h. On some platforms without it the opendir headers are not included and cause build failures. Unix (Linux, BSD, Solaris and Mac) are primarily affected.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 29 Sep 2020 22:49:04 +0000
parents 37ce3e22ee1a
children 9f336ce185fd
comparison
equal deleted inserted replaced
2159:48172881415c 2160:07f1366a724c
112 112
113 installdwcompat: $(SYSCONF_LINK_TARGET2) 113 installdwcompat: $(SYSCONF_LINK_TARGET2)
114 $(INSTALL) -d $(prefix)/lib; \ 114 $(INSTALL) -d $(prefix)/lib; \
115 $(INSTALL) $(SYSCONF_LINK_TARGET2) $(prefix)/lib; \ 115 $(INSTALL) $(SYSCONF_LINK_TARGET2) $(prefix)/lib; \
116 $(INSTALL) $(srcdir)/dwcompat.h $(prefix)/include; \ 116 $(INSTALL) $(srcdir)/dwcompat.h $(prefix)/include; \
117 $(INSTALL) $(srcdir)/dwconfig.h $(prefix)/include; \
117 cd $(prefix)/lib; \ 118 cd $(prefix)/lib; \
118 rm -f lib$(TARGET2).$(SOSUFFIX) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ); \ 119 rm -f lib$(TARGET2).$(SOSUFFIX) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ); \
119 ln -sf $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX); \ 120 ln -sf $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX); \
120 ln -sf $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ) 121 ln -sf $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ)
121 122
128 rm -f $(prefix)/lib/lib$(TARGET).$(SOSUFFIX).$(VER_MAJ).$(VER_MIN) 129 rm -f $(prefix)/lib/lib$(TARGET).$(SOSUFFIX).$(VER_MAJ).$(VER_MIN)
129 rm -f $(prefix)/lib/pkgconfig/dwindows.pc 130 rm -f $(prefix)/lib/pkgconfig/dwindows.pc
130 rm -f $(prefix)/bin/dwindows-config 131 rm -f $(prefix)/bin/dwindows-config
131 rm -f $(prefix)/bin/dwtest 132 rm -f $(prefix)/bin/dwtest
132 rm -f $(prefix)/include/dwcompat.h 133 rm -f $(prefix)/include/dwcompat.h
134 rm -f $(prefix)/include/dwconfig.h
133 rm -f $(prefix)/include/dw.h 135 rm -f $(prefix)/include/dw.h
134 rm -f $(prefix)/share/applications/org.dbsoft.dwindows.dwtest.desktop 136 rm -f $(prefix)/share/applications/org.dbsoft.dwindows.dwtest.desktop
135 rm -f $(prefix)/share/man/man1/dwindows-config.1.gz 137 rm -f $(prefix)/share/man/man1/dwindows-config.1.gz
136 138
137 deb: dist 139 deb: dist
138 -rm -fr tmp 140 -rm -fr tmp
139 -mkdir tmp 141 -mkdir tmp
140 (cd tmp;tar zxvf ../../$(srcdir)/$(SRCDIR).tar.gz;cd $(SRCDIR);dpkg-buildpackage -rfakeroot;cd ..;ls -l) 142 (cd tmp;tar zxvf ../../$(srcdir)/$(SRCDIR).tar.gz;cd $(SRCDIR);dpkg-buildpackage -rfakeroot;cd ..;ls -l)
141 143
142 distclean: clean 144 distclean: clean
143 rm -f config.status config.log config.h 145 rm -f config.status config.log dwconfig.h
144 rm -f dwindows-config dwindows-config1 dwindows.pc dwindows1.pc 146 rm -f dwindows-config dwindows-config1 dwindows.pc dwindows1.pc
145 rm -f org.dbsoft.dwindows.dwtest.desktop 147 rm -f org.dbsoft.dwindows.dwtest.desktop
146 rm -f Makefile 148 rm -f Makefile
147 149
148 clean: 150 clean: