Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #nome do projeto
- PROJ_NAME = dale
- #.cc files
- C_SOURCE=$(wildcard *.cc)
- #.h files
- H_SOURCE=$(wildcard *.h)
- #Object files
- OBJ=$(C_SOURCE:.cc=.o)
- #Compiler
- CC=g++
- #Flags for compiler
- CC_FLAGS= -c -W -Wall -ansi -pedantic
- all: $(PROJ_NAME)
- $(PROJ_NAME): $(OBJ)
- $(CC) -o $@ $^
- %.o: %.cc %.h
- $(CC) -o $@ $< $(CC_FLAGS)
- main.o: main.cc $(H_SOURCE)
- $(CC) -o $@ $< $(CC_FLAGS)
- clean:
- rm -rf *.o $(PROJ_NAME) *~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement