/[bontz]/bontz/Makefile
ViewVC logotype

Diff of /bontz/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by grizz, Mon Oct 6 22:41:50 2003 UTC revision 1.7 by rickac, Sun Oct 12 05:39:19 2003 UTC
# Line 11  IMG_FLAGS := -lSDL_image Line 11  IMG_FLAGS := -lSDL_image
11  CC=g++  CC=g++
12  SOURCES =  SOURCES =
13  #these sources need to be linked to the SDL libs so may have special flag settings  #these sources need to be linked to the SDL libs so may have special flag settings
14  SDL_SOURCES = bontz.cpp lib/font.cpp lib/CSprite.cpp lib/CSpriteBase.cpp lib/textbox.cpp lib/menubox.cpp  SDL_SOURCES = bontz.cpp lib/font.cpp lib/CSprite.cpp lib/CSpriteBase.cpp lib/textbox.cpp lib/menubox.cpp lib/writepng.cpp
15  OBJS = $(SOURCES:%.cpp=%.o) $(SDL_SOURCES:%.cpp=%.o)  OBJS = $(SOURCES:%.cpp=%.o) $(SDL_SOURCES:%.cpp=%.o)
16  TARGET = bontz  TARGET = bontz
17  FISHRACE_TARGET = fishrace  FISHRACE_TARGET = fishrace
# Line 19  DEMO_TARGET = demo Line 19  DEMO_TARGET = demo
19  RM=rm  RM=rm
20    
21  #builds all, builds the target  #builds all, builds the target
22    
23  all:    $(OBJS)  all:    $(OBJS)
24          $(CC) $(SDL_LDFLAGS) $(SMPEG_LDFLAGS) $(MIXER_FLAGS) $(IMG_FLAGS) $(OBJS) -o $(TARGET)          $(CC) $(SDL_LDFLAGS) $(SMPEG_LDFLAGS) $(MIXER_FLAGS) $(IMG_FLAGS) $(OBJS) -o $(TARGET)
25    
# Line 28  demo:  $(OBJS) Line 29  demo:  $(OBJS)
29  fishrace: $(OBJS)  fishrace: $(OBJS)
30          $(CC) $(SDL_LDFLAGS) $(SMPEG_LDFLAGS) $(MIXER_FLAGS) $(IMG_FLAGS) $(OBJS) -o $(FISHRACE_TARGET)          $(CC) $(SDL_LDFLAGS) $(SMPEG_LDFLAGS) $(MIXER_FLAGS) $(IMG_FLAGS) $(OBJS) -o $(FISHRACE_TARGET)
31    
 #build the sources  
 #$(SOURCES):  
 #       $(CC) $(CFLAGS) -c $@  
   
 #build SDL sources  
 #$(SDL_SOURCES):  
 #       $(CC) $(SMPEG_CFLAGS) $(SDL_CFLAGS) -c $@  
   
32  %.o: %.cpp  %.o: %.cpp
33          $(CC) $(SMPEG_CFLAGS) $(SDL_CFLAGS) -c -o $@ $<          $(CC) $(SMPEG_CFLAGS) $(SDL_CFLAGS) -c -o $@ $<
34    
35    bontz.o: $(SDL_SOURCES)
36            $(CC) $(SMPEG_CFLAGS) $(SDL_CFLAGS) -c -o $@ $<
37    
38  # clean out the dross  # clean out the dross
39  clean:  clean:
40          -$(RM) $(TARGET) *.o lib/*.o          -$(RM) $(TARGET) *.o lib/*.o
   
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26