libsegl/Makefile

35 lines
847 B
Makefile
Raw Normal View History

2008-02-09 13:43:23 +01:00
COMPILER = g++
OBJECTS = punkt3d.o punkt2d.o 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
SUBDIRS = glgui glmenu
SUBDIROBJECTS = glgui/*.o glmenu/*.o
2008-02-09 13:43:23 +01:00
VERSION = 0.0.1
LIBNAME = libsegl
2008-02-09 13:43:23 +01:00
seglar: $(OBJECTS) subdirs
rm -f $(LIBNAME).a
ar rcs $(LIBNAME).a $(OBJECTS) $(SUBDIROBJECTS)
# ranlib $(LIBNAME).a
segllib: $(OBJECTS) subdirs
subdirs:
@for i in $(SUBDIRS); do $(MAKE) -C $$i; done
2008-02-09 13:43:23 +01:00
%.o: %.cpp %.h
$(COMPILER) -c `sdl-config --cflags` $<
glgui/glgui.a:
cd glgui; $(MAKE);
glmenu/glmenu.a:
cd glmenu; $(MAKE);
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
cd glmenu; $(MAKE) clean
2008-02-09 13:43:23 +01:00
@echo Done cleaning...