Skip to content

Instantly share code, notes, and snippets.

@orumin
Created July 28, 2012 05:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save orumin/3191886 to your computer and use it in GitHub Desktop.
Save orumin/3191886 to your computer and use it in GitHub Desktop.
TARGET=
CC=gcc
CXX=g++
CFLAGS=-g -O2 -w
CXXFLAGS=$(CFLAGS)
LDFLAGS=-static-libgcc -static-libstdc++
INCDIR=-I"./DxLib/"
LIBDIR=-L"./DxLib/"
LIBS=-lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltheora_static -lvorbis_static\
-lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath
LIBS+=-lgdi32
OBJS=main.o
.cpp.o:
$(CXX) $(CXXFLAGS) -c $<
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(INCDIR) $(LIBDIR) -o $@ $^ $(LIBS)
clean:
@rm -fr $(TARGET).exe $(OBJS) *~ *.swp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment