Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1850 in orxonox.OLD for orxonox/trunk/core/Makefile


Ignore:
Timestamp:
Apr 21, 2004, 1:11:19 AM (21 years ago)
Author:
patrick
Message:

orxonox/trunk: new Makfile, orxonox with window, data_tank added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/Makefile

    r1849 r1850  
    11
    2 CPLUSPLUS = g++
     2CC = gcc
     3CXX = g++
    34APP_LIB_DEPS = -lglut -lGLU -lGL -lm -L/usr/X11R6/lib -lXt -lX11
    45GL_LIB = libGL.so
     
    89OSMESA_LIB = libOSMesa.so
    910
    10 CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -I/usr/X11R6/include
     11CFLAGS = -O3 -pedantic -fPIC -ffast-math -I/usr/X11R6/include
    1112CXXFLAGS = -fPIC -O3
    1213GLUT_CFLAGS = -fexceptions
     
    2526        orxonox \
    2627
     28HEADERS = \
     29        orxonox.h \
     30        data_core.h
     31       
     32SOURCES = \
     33        orxonox.cc \
     34        data_core.cc
     35
     36OBJECTS = \
     37        orxonox.o \
     38        data_tank.o
     39
     40TARGET = orxonox
     41
    2742.SUFFIXES:
    2843.SUFFIXES: .cc
    2944
    30 .cc: $(LIB_DEP)
    31         $(CPLUSPLUS) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
     45#.cc: $(LIB_DEP)
     46#       $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
    3247
    33 default:
    34 targets: $(PROGS)
     48.cc.o:
     49        $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $<
     50
     51
     52#### build
     53
     54all: $(TARGET)
     55
     56$(TARGET): $(LIB_DEP) $(OBJECTS)
     57        $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS)
     58
     59
     60help:
     61        @echo "Cleaning targets:"
     62        @echo "  clean          - remove most generated files"
     63        @echo ""
     64        @echo "Generic targets:"
     65        @echo "  all            - Build all targets"
     66        @echo ""
     67        @echo "For further info see the README file"
    3568       
    36 
    3769clean:
    3870        rm -rf *.o *~ $(PROGS)
    3971
     72
     73####compile
     74
     75orxonox.o: orxonox.cc \
     76                orxonox.h \
     77
     78data_tank.o: data_tank.cc \
     79                data_tank.h     
     80       
     81#EOF
Note: See TracChangeset for help on using the changeset viewer.