Advertisement
Guest User

My 1st Attempt at a Gosu Makefile

a guest
Mar 18th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.88 KB | None | 0 0
  1. PROJ = Tutorial
  2.  
  3. TARGET = $(PROJ).exe
  4.  
  5. LDFLAGS   += -I. -L/usr/lib -lintl
  6. LDFLAGS   += -L/c/gosu/lib -lgosu
  7. LDFLAGS   += -L/c/lib/FreeImage/Dist/x32 -lFreeImage
  8. LDFLAGS   += -L/c/lib/SDL2_mixer/i686-w64-mingw32/lib -lSDL2_mixer
  9. LDFLAGS   += -L/c/lib/SDL2/i686-w64-mingw32/lib -lSDL2
  10. LDFLAGS   += -L/c/lib/OpenAL/libs/Win32 -lOpenAl32
  11. LDFLAGS   += -lopengl32 -lglu32 -lgdi32 -lwinmm -ldxguid -lws2_32 -ldinput8
  12.  
  13. CXXFLAGS  = -Wall -g -I. -DUNICODE -D_UNICODE -DMINGW -DWIN32 -std=c++11
  14. # -I$(DXINCLUDE) -D_DEBUG
  15. # CXXFLAGS += -I/c/lib/FreeImage/Dist/x32 -I/c/lib/SDL2/i686-w64-mingw32/include/SDL2 -I/c/lib/SDL2_mixer/i686-w64-mingw32/include
  16. # CXXFLAGS += -I/c/Program\ Files\ \(x86\)/OpenAL\ 1.1\ SDK/include -Idependencies/libsndfile
  17.  
  18. all: $(TARGET)
  19.  
  20. $(TARGET): main.o
  21.     $(LINK.o) $^ $(LDFLAGS) $(LDLIBS) -o $@
  22.  
  23. clean:
  24.     @echo 'Removing *.o'
  25.     @find . -name \*.o -type f -delete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement