Advertisement
Guest User

Untitled

a guest
Dec 30th, 2010
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.11 KB | None | 0 0
  1. # Makefile
  2. CC = gcc
  3. CPP = g++
  4. CFLAGS = -c -g -Wall
  5. LDFLAGS =
  6. OBJ = src/obj/core.o src/obj/image.o src/obj/gnd.o src/obj/gat.o src/obj/world.o src/obj/rsw.o src/obj/camera.o src/obj/rsm.o src/obj/main.o
  7. LIBS = -lsfml-graphics -lsfml-window -lsfml-system -lopengl32 -lglu32
  8. BIN  = romv
  9.  
  10. all: $(BIN)
  11.  
  12. $(BIN): $(OBJ)
  13.     $(CPP) $(LDFLAGS) $(OBJ) -o $(BIN) $(LIBS)
  14.  
  15. src/obj/core.o: src/core.cpp
  16.     $(CPP) $(CFLAGS) src/core.cpp -o src/obj/core.o
  17.  
  18. src/obj/image.o: src/image.cpp
  19.     $(CPP) $(CFLAGS) src/image.cpp -o src/obj/image.o
  20.  
  21. src/obj/gnd.o: src/gnd.cpp
  22.     $(CPP) $(CFLAGS) src/gnd.cpp -o src/obj/gnd.o
  23.  
  24. src/obj/gat.o: src/gat.cpp
  25.     $(CPP) $(CFLAGS) src/gat.cpp -o src/obj/gat.o
  26.  
  27. src/obj/world.o: src/world.cpp
  28.     $(CPP) $(CFLAGS) src/world.cpp -o src/obj/world.o
  29.  
  30. src/obj/rsw.o: src/rsw.cpp
  31.     $(CPP) $(CFLAGS) src/rsw.cpp -o src/obj/rsw.o
  32.  
  33. src/obj/camera.o: src/camera.cpp
  34.     $(CPP) $(CFLAGS) src/camera.cpp -o src/obj/camera.o
  35.  
  36. src/obj/rsm.o: src/rsm.cpp
  37.     $(CPP) $(CFLAGS) src/rsm.cpp -o src/obj/rsm.o
  38.  
  39. src/obj/main.o: src/main.cpp
  40.     $(CPP) $(CFLAGS) src/main.cpp -o src/obj/main.o
  41.  
  42. clean:
  43.     rm -f $(OBJ) $(BIN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement