Guest User

Untitled

a guest
Sep 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. CC=g++
  2.  
  3. INCLUDE=./include
  4. SRC=./src
  5. BIN=./bin
  6. OBJ=./obj
  7. LIB=./lib
  8.  
  9. CPPFLAGS = -Wall -g -I$(INCLUDE)
  10. LDFLAGS = -L$(LIB) -lformas -lgraficos -lSDL_gfx -lSDL -lpthread
  11.  
  12. $(LIB)/libgraficos.a :$(OBJ)/graficos.o
  13. ar rsv $(LIB)/libgraficos.a $(OBJ)/graficos.o
  14.  
  15. $(OBJ)/graficos.o :$(SRC)/graficos.cpp $(INCLUDE)/graficos.h
  16. $(CC) -c -o $(OBJ)/graficos.o $(CPPFLAGS) $(SRC)/graficos.cpp
  17.  
  18. $(OBJ)/poligono.o:$(SRC)/poligono.cpp $(INCLUDE)/poligono.h $(INCLUDE)/vectorpuntos.h $(INCLUDE)/graficos.h $(INCLUDE)/linea.h $(INCLUDE)/punto.h
  19. $(CC) -c -o $(OBJ)/poligono.o $(CPPFLAGS) $(SRC)/poligono.cpp
  20.  
  21. $(OBJ)/vectorpuntos.o:$(SRC)/vectorpuntos.cpp $(INCLUDE)/vectorpuntos.h $(INCLUDE)/punto.h
  22. $(CC) -c -o $(OBJ)/vectorpuntos.o $(CPPFLAGS) $(SRC)/vectorpuntos.cpp
  23.  
  24.  
  25. $(OBJ)/linea.o:$(SRC)/linea.cpp $(INCLUDE)/linea.h $(INCLUDE)/punto.h
  26. $(CC) -c -o $(OBJ)/linea.o $(CPPFLAGS) $(SRC)/linea.cpp
  27.  
  28. $(OBJ)/punto.o:$(SRC)/punto.cpp $(INCLUDE)/punto.h
  29. $(CC) -c -o $(OBJ)/punto.o $(CPPFLAGS) $(SRC)/punto.cpp
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. clean:
  37. rm -f $(OBJ)/.*o
  38.  
  39. mrproper:
  40. rm -f $(LIB)/libgraficos.a
Add Comment
Please, Sign In to add comment