27 lines
626 B
Makefile
Executable File
27 lines
626 B
Makefile
Executable File
COMPILER = g++
|
|
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
|
|
VERSION = 0.0.1
|
|
LIBNAME = libsegl
|
|
|
|
|
|
segllib: $(OBJECTS)
|
|
|
|
seglar: $(OBJECTS)
|
|
rm -f $(LIBNAME).a
|
|
ar rcs $(LIBNAME).a $(OBJECTS)
|
|
# ranlib $(LIBNAME).a
|
|
|
|
%.o: %.cpp %.h
|
|
$(COMPILER) -c `sdl-config --cflags` $<
|
|
|
|
|
|
glgui/glgui.a:
|
|
cd glgui; $(MAKE);
|
|
|
|
testprog: seglar testprog.o
|
|
g++ `sdl-config --libs` -lSDL_image -lGL -lGLU testprog.o -o testprog $(LIBNAME).a
|
|
|
|
clean:
|
|
rm -f $(OBJECTS)
|
|
cd glgui; $(MAKE) clean
|
|
@echo Done cleaning...
|