diff options
Diffstat (limited to 'progs/samples/Makefile.mgw')
-rw-r--r-- | progs/samples/Makefile.mgw | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/progs/samples/Makefile.mgw b/progs/samples/Makefile.mgw index 40d4aaf58d..54dbfb706a 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 <filename.exe> to build) |