Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.34 KB | None | 0 0
  1. SOURCES := $(wildcard *.cpp)
  2. OBJECTS := $(subst .cpp,.o,$(SOURCES))
  3. COMPILER := g++ -std=c++17
  4.  
  5. INCLUDE := -lGL -lGLEW -lglfw -Iimgui -IInclude
  6.  
  7. executable: $(OBJECTS)
  8.     $(COMPILER) -o $@ $^ $(INCLUDE)
  9.  
  10. %.o: %.cpp
  11.     $(COMPILER) -o $@ -c $^ -I. $(INCLUDE)
  12.  
  13. clean:
  14.     rm *.o executable
  15.  
  16. info:
  17.     $(info $(SOURCES))
  18.     $(info $(OBJECTS))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement