diff options
author | Dan Nicholson <[email protected]> | 2007-09-28 18:42:21 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-09-28 18:42:21 -0600 |
commit | 2a3e33865dd9a3d064a3c0af94ef11d4aa4a6ce4 (patch) | |
tree | 340934443ff1acfa3100001391a55e24744ad9bf /progs/osdemos | |
parent | e776e7a95a4fc4fac95048665ab4c981e153b7fb (diff) |
add support for LDFLAGS env var
Diffstat (limited to 'progs/osdemos')
-rw-r--r-- | progs/osdemos/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/progs/osdemos/Makefile b/progs/osdemos/Makefile index f8cba9ee99a..7e657744e36 100644 --- a/progs/osdemos/Makefile +++ b/progs/osdemos/Makefile @@ -26,7 +26,7 @@ PROGS = \ # make executable from .c file: .c: $(LIB_DEP) readtex.o - $(CC) -I$(INCDIR) $(CFLAGS) $< readtex.o $(APP_LIB_DEPS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< readtex.o $(APP_LIB_DEPS) -o $@ ##### TARGETS ##### @@ -56,19 +56,19 @@ showbuffer.o: showbuffer.c showbuffer.h # special case: need the -lOSMesa library: osdemo: osdemo.c - $(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo.c $(OSMESA_LIBS) -o $@ # special case: need the -lOSMesa library: ostest1: ostest1.c - $(CC) -I$(INCDIR) $(CFLAGS) ostest1.c $(OSMESA_LIBS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) ostest1.c $(OSMESA_LIBS) -o $@ # another special case: need the -lOSMesa16 library: osdemo16: osdemo16.c - $(CC) -I$(INCDIR) $(CFLAGS) osdemo16.c $(OSMESA16_LIBS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo16.c $(OSMESA16_LIBS) -o $@ # another special case: need the -lOSMesa32 library: osdemo32: osdemo32.c - $(CC) -I$(INCDIR) $(CFLAGS) osdemo32.c $(OSMESA32_LIBS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) osdemo32.c $(OSMESA32_LIBS) -o $@ |