2008-02-09 13:43:23 +01:00
|
|
|
COMPILER = g++
|
2008-02-10 20:50:42 +01:00
|
|
|
OBJECTS = emath.o emath_opengl.o glcolor.o gldrawhelper.o glfontengine.o glrect.o gltexture.o matrix.o quaternion.o rotationsmatrix.o glsdlscreen.o sdlfuncs.o glgui/glgui.a
|
2008-02-09 13:43:23 +01:00
|
|
|
VERSION = 0.0.1
|
2008-02-10 20:50:42 +01:00
|
|
|
LIBNAME = libsegl
|
2008-02-09 13:43:23 +01:00
|
|
|
|
|
|
|
|
2008-02-10 20:50:42 +01:00
|
|
|
segllib: $(OBJECTS)
|
2008-02-09 13:43:23 +01:00
|
|
|
|
2008-02-10 20:50:42 +01:00
|
|
|
seglar: $(OBJECTS)
|
|
|
|
rm -f $(LIBNAME).a
|
|
|
|
ar rcs $(LIBNAME).a $(OBJECTS)
|
|
|
|
# ranlib $(LIBNAME).a
|
2008-02-09 13:43:23 +01:00
|
|
|
|
|
|
|
%.o: %.cpp %.h
|
|
|
|
$(COMPILER) -c `sdl-config --cflags` $<
|
|
|
|
|
|
|
|
|
|
|
|
glgui/glgui.a:
|
|
|
|
cd glgui; $(MAKE);
|
|
|
|
|
2008-02-10 20:50:42 +01:00
|
|
|
testprog: seglar testprog.o
|
|
|
|
g++ `sdl-config --libs` -lSDL_image -lGL -lGLU testprog.o -o testprog $(LIBNAME).a
|
|
|
|
|
2008-02-09 13:43:23 +01:00
|
|
|
clean:
|
|
|
|
rm -f $(OBJECTS)
|
|
|
|
cd glgui; $(MAKE) clean
|
|
|
|
@echo Done cleaning...
|