From: Daniel Borca Date: Mon, 31 Jan 2005 13:23:55 +0000 (+0000) Subject: makefile update (readtex, showbuffer) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc4cabbfa89154bce97fa1c076f4426cd6e55b68;p=mesa.git makefile update (readtex, showbuffer) --- diff --git a/progs/samples/Makefile.DJ b/progs/samples/Makefile.DJ index 3d589ed73f3..557695a66cb 100644 --- a/progs/samples/Makefile.DJ +++ b/progs/samples/Makefile.DJ @@ -49,8 +49,9 @@ -.PHONY : all -.SUFFIXES : .c .o .exe +.PHONY: all +.SUFFIXES: .c .o .exe +.SECONDARY: ../util/readtex.o ../util/showbuffer.o TOP = ../.. CPU ?= pentium @@ -80,8 +81,8 @@ endif .c.o: $(CC) -o $@ $(CFLAGS) -c $< -.o.exe: - $(LD) -o $@ $(LDFLAGS) $< $(LDLIBS) +%.exe: ../util/readtex.o ../util/showbuffer.o %.o + $(LD) -o $@ $(LDFLAGS) $^ $(LDLIBS) all: $(error Must specify to build) diff --git a/progs/samples/Makefile.mgw b/progs/samples/Makefile.mgw index 40d4aaf58d3..54dbfb706ad 100644 --- a/progs/samples/Makefile.mgw +++ b/progs/samples/Makefile.mgw @@ -40,8 +40,9 @@ -.PHONY : all -.SUFFIXES : .c .o .exe +.PHONY: all +.SUFFIXES: .c .o .exe +.SECONDARY: ../util/readtex.o ../util/showbuffer.o TOP = ../.. CPU ?= pentium @@ -63,8 +64,8 @@ LDLIBS = -lglut32 -lglu32 -lopengl32 .c.o: $(CC) -o $@ $(CFLAGS) -c $< -.o.exe: - $(LD) -o $@ $(LDFLAGS) $< $(LDLIBS) +%.exe: ../util/readtex.o ../util/showbuffer.o %.o + $(LD) -o $@ $(LDFLAGS) $^ $(LDLIBS) all: $(error Must specify to build)