Mercurial > hg > index.cgi
comparison Makefile @ 503:17fa03d69df3
Unbork "make install"
The merge of the lwcc stuff borked the Makefile some. This should unbork it.
At least it should install the binaries in .../bin again.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 26 Sep 2019 21:37:49 -0600 |
parents | c3099c5d9d3e |
children | 724bcc4508bc |
comparison
equal
deleted
inserted
replaced
502:14a40f8bb4eb | 503:17fa03d69df3 |
---|---|
5 # BUILDTPREFIX: prefix added to build utilities (cc, etc.) for xcompile | 5 # BUILDTPREFIX: prefix added to build utilities (cc, etc.) for xcompile |
6 # can also set them when invoking "make" | 6 # can also set them when invoking "make" |
7 #PROGSUFFIX := .exe | 7 #PROGSUFFIX := .exe |
8 #BUILDTPREFIX=i586-mingw32msvc- | 8 #BUILDTPREFIX=i586-mingw32msvc- |
9 | 9 |
10 LWTOOLS_VERSION = 4.8 | |
11 LWTOOLS_VERSION_SUFFIX = -devcc | |
12 | |
13 PACKAGE_VERSION = $(LWTOOLS_VERSION)$(LWTOOLS_VERSION_SUFFIX) | |
14 | |
15 ifeq ($(PREFIX),) | 10 ifeq ($(PREFIX),) |
16 ifneq ($(DESTDIR),) | 11 ifneq ($(DESTDIR),) |
17 PREFIX = /usr | 12 PREFIX = /usr |
18 else | 13 else |
19 PREFIX = /usr/local | 14 PREFIX = /usr/local |
179 | 174 |
180 extra_clean := $(extra_clean) *~ */*~ | 175 extra_clean := $(extra_clean) *~ */*~ |
181 | 176 |
182 %.o: %.c | 177 %.o: %.c |
183 @echo "Building dependencies for $@" | 178 @echo "Building dependencies for $@" |
184 @$(CC) -MM -MG $(CPPFLAGS) -o $*.d $< | 179 @$(CC) -MM $(CPPFLAGS) -o $*.d $< |
185 @mv -f $*.d $*.d.tmp | 180 @mv -f $*.d $*.d.tmp |
186 @sed -e 's|.*:|$*.o $*.d:|' < $*.d.tmp > $*.d | 181 @sed -e 's|.*:|$*.o $*.d:|' < $*.d.tmp > $*.d |
187 @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d | 182 @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d |
188 @rm -f $*.d.tmp | 183 @rm -f $*.d.tmp |
189 @echo Building $@ | 184 @echo Building $@ |
210 @echo $* = $($*) | 205 @echo $* = $($*) |
211 | 206 |
212 .PHONY: install | 207 .PHONY: install |
213 install: $(MAIN_TARGETS) | 208 install: $(MAIN_TARGETS) |
214 install -d $(INSTALLDIR) | 209 install -d $(INSTALLDIR) |
215 install $(MAIN_TARGETS) $(INSTALLDIR) | 210 install -d $(INSTALLBIN) |
211 install $(MAIN_TARGETS) $(INSTALLBIN) | |
216 install -d $(LWCC_INSTALLLIBDIR) | 212 install -d $(LWCC_INSTALLLIBDIR) |
217 install -d $(LWCC_INSTALLLIBDIR)/bin | 213 install -d $(LWCC_INSTALLLIBDIR)/bin |
218 install -d $(LWCC_INSTALLLIBDIR)/lib | 214 install -d $(LWCC_INSTALLLIBDIR)/lib |
219 install -d $(LWCC_INSTALLLIBDIR)/include | 215 install -d $(LWCC_INSTALLLIBDIR)/include |
220 ifneq ($(LWCC_LIBBIN_FILES),) | 216 ifneq ($(LWCC_LIBBIN_FILES),) |