summaryrefslogtreecommitdiff
path: root/gcc/fixinc/Makefile.in
diff options
context:
space:
mode:
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-13 20:07:46 +0000
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-13 20:07:46 +0000
commit5beb4ba097ebc3d2d87ee799606ae7789547c89a (patch)
treeaa77d1e180b5de6f18f88e4ec71062700cc5d417 /gcc/fixinc/Makefile.in
parent370f8928be64012444d56f6d5392d77fe148096f (diff)
downloadgcc-5beb4ba097ebc3d2d87ee799606ae7789547c89a.tar.gz
Use one makefile for fixinc
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38231 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc/Makefile.in')
-rw-r--r--gcc/fixinc/Makefile.in39
1 files changed, 25 insertions, 14 deletions
diff --git a/gcc/fixinc/Makefile.in b/gcc/fixinc/Makefile.in
index 6213ffd12b8..86155182b6f 100644
--- a/gcc/fixinc/Makefile.in
+++ b/gcc/fixinc/Makefile.in
@@ -59,23 +59,38 @@ INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/.. \
## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
LIBERTY = ../../libiberty/libiberty.a
-OBJ = fixincl.o fixtests.o fixfixes.o server.o procopen.o \
+
+ALLOBJ = fixincl.o fixtests.o fixfixes.o server.o procopen.o \
gnu-regex.o fixlib.o
-HDR = server.h gnu-regex.h fixlib.h machname.h
+TESTOBJ = fixincl.o fixlib.o fixtests.o gnu-regex.o
+FIXOBJ = fixfixes.o fixlib.o gnu-regex.o
-TARGETS = fixincl@build_exeext@
+HDR = server.h gnu-regex.h fixlib.h machname.h
+FI = fixincl@build_exeext@
+AF = applyfix@build_exeext@
all : $(TARGETS)
gen : $(srcdir)/fixincl.x
-fixincl@build_exeext@: $(OBJ) $(LIBERTY)
- $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $@ $(OBJ) $(LIBERTY)
+oneprocess : full-stamp
+twoprocess : test-stamp $(AF)
+
+full-stamp : $(ALLOBJ) $(LIBERTY)
+ $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $(FI) $(ALLOBJ) $(LIBERTY)
+ touch $@
+
+test-stamp : $(TESTOBJ) $(LIBERTY)
+ $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $(FI) $(TESTOBJ) $(LIBERTY)
+ touch $@
+
+$(AF): $(FIXOBJ) $(LIBERTY)
+ $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $@ $(FIXOBJ) $(LIBERTY)
-$(OBJ) : $(HDR)
-fixincl.o : $(srcdir)/fixincl.x fixincl.c
+$(ALLOBJ) : $(HDR)
+fixincl.o : fixincl.c $(srcdir)/fixincl.x
fixtests.o : fixtests.c
-fixfixes.o : fixfixes.c
+fixfixes.o : fixfixes.c $(srcdir)/fixincl.x
server.o : server.c
procopen.o : procopen.c
gnu-regex.o : gnu-regex.c
@@ -91,7 +106,7 @@ $(srcdir)/fixincl.x: fixincl.tpl inclhack.def
cd $(srcdir) ; $(SHELL) ./genfixes $@
clean:
- rm -f *.o $(TARGETS) machname.h *~
+ rm -f *.o *-stamp $(AF) $(FI) machname.h *~
maintainer-clean : clean
rm -f $(srcdir)/fixincl.x
@@ -103,11 +118,7 @@ install-bin : $(TARGETS)
./fixincl -v
@if [ -f ../fixinc.sh ] ; then rm -f ../fixinc.sh || \
mv -f ../fixinc.sh ../fixinc.sh.$$ || exit 1 ; fi
- @if [ -f ./fixincl.sh ] ; \
- then echo cp ./fixincl.sh ../fixinc.sh ; \
- cp ./fixincl.sh ../fixinc.sh ; \
- else echo cp $(srcdir)/fixincl.sh ../fixinc.sh ; \
- cp $(srcdir)/fixincl.sh ../fixinc.sh ; fi
+ @cp $(srcdir)/fixincl.sh ../fixinc.sh
chmod 755 ../fixinc.sh
Makefile: Makefile.in ../config.status