Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC=g++
- INCLUDE=./include
- SRC=./src
- BIN=./bin
- OBJ=./obj
- LIB=./lib
- CPPFLAGS = -Wall -g -I$(INCLUDE)
- LDFLAGS = -L$(LIB) -lformas -lgraficos -lSDL_gfx -lSDL -lpthread
- $(LIB)/libgraficos.a :$(OBJ)/graficos.o
- ar rsv $(LIB)/libgraficos.a $(OBJ)/graficos.o
- $(OBJ)/graficos.o :$(SRC)/graficos.cpp $(INCLUDE)/graficos.h
- $(CC) -c -o $(OBJ)/graficos.o $(CPPFLAGS) $(SRC)/graficos.cpp
- $(OBJ)/poligono.o:$(SRC)/poligono.cpp $(INCLUDE)/poligono.h $(INCLUDE)/vectorpuntos.h $(INCLUDE)/graficos.h $(INCLUDE)/linea.h $(INCLUDE)/punto.h
- $(CC) -c -o $(OBJ)/poligono.o $(CPPFLAGS) $(SRC)/poligono.cpp
- $(OBJ)/vectorpuntos.o:$(SRC)/vectorpuntos.cpp $(INCLUDE)/vectorpuntos.h $(INCLUDE)/punto.h
- $(CC) -c -o $(OBJ)/vectorpuntos.o $(CPPFLAGS) $(SRC)/vectorpuntos.cpp
- $(OBJ)/linea.o:$(SRC)/linea.cpp $(INCLUDE)/linea.h $(INCLUDE)/punto.h
- $(CC) -c -o $(OBJ)/linea.o $(CPPFLAGS) $(SRC)/linea.cpp
- $(OBJ)/punto.o:$(SRC)/punto.cpp $(INCLUDE)/punto.h
- $(CC) -c -o $(OBJ)/punto.o $(CPPFLAGS) $(SRC)/punto.cpp
- clean:
- rm -f $(OBJ)/.*o
- mrproper:
- rm -f $(LIB)/libgraficos.a
Add Comment
Please, Sign In to add comment