diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2007-10-29 09:03:01 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-29 09:03:01 -0600 |
commit | c05aa5ec4cc29f949eff350582cb6f6c03dce3c6 (patch) | |
tree | 7fbd2ddd53a5eabacd35e12b407e203a7d2b2853 /progs/samples/Makefile | |
parent | b59dbd822f353cbf0db404f14c2721c79cde79fc (diff) |
specify app lib dependencies in Makefiles (patch 1/3)
Diffstat (limited to 'progs/samples/Makefile')
-rw-r--r-- | progs/samples/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/progs/samples/Makefile b/progs/samples/Makefile index 8c99e8df25..6509a559a5 100644 --- a/progs/samples/Makefile +++ b/progs/samples/Makefile @@ -7,6 +7,8 @@ INCDIR = $(TOP)/include LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME) +LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) + PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \ font line logo nurb olympic overlay point prim quad select \ shape sphere star stencil stretch texture tri wave @@ -18,7 +20,7 @@ PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \ .SUFFIXES: .c .c: $(LIB_DEP) - $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(APP_LIB_DEPS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ ##### TARGETS ##### @@ -27,7 +29,7 @@ default: $(PROGS) sphere: sphere.o readtex.o - $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) sphere.o readtex.o $(APP_LIB_DEPS) -o $@ + $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) sphere.o readtex.o $(LIBS) -o $@ sphere.o: sphere.c readtex.h $(CC) -c -I$(INCDIR) $(CFLAGS) sphere.c |