Changeset 8


Ignore:
Timestamp:
12/15/06 09:55:42 (12 years ago)
Author:
art
Message:

dded Makefiles for compilation and cleaning

Files:
4 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • Makedefs

    r6 r8  
    22# Paths where to find includes and libraries 
    33#----------------------------------------------- 
    4 INCPATH= -I/usr/local/include 
    5 LIBPATH= -L/usr/local/lib 
     4INCPATH= -I/usr/local/include -I/usr/include 
     5LIBPATH= -L/usr/local/lib -L/usr/lib 
    66BUILDPATH= build 
    77VPATH=. $(BUILDPATH) 
     
    1111#----------------------------------------------- 
    1212CC=g++ 
    13 CFLAGS= -Wall -O2 $(INCPATH) -pthread 
     13CFLAGS= -O2 -Wall -Werror -pthread $(INCPATH) 
    1414LIBS=  
    1515LDFLAGS= -shared $(LIBPATH) $(LIBS) 
  • Makerules

    r7 r8  
    7272.PHONY : clean 
    7373clean: 
    74         rm -rf $(BUILDPATH) 
    75         rm -f Makedepend 
    76         rm -rf *~ 
    77         rm -rf DEADJOE 
    78         rm -rf *.d 
    79         rm -rf make.dep  
     74        @ echo -n "Clean building directory ..." 
     75        @ rm -rf $(BUILDPATH) 
     76        @ rm -rf *~ 
     77        @ rm -rf *.d 
     78        @ rm -rf make.dep        
     79        @ echo "OK" 
    8080 
    8181#----------------------------------------------- 
  • Plugins/luaScripting/Makefile

    r5 r8  
    1 CC=/usr/local/gcc-4.1.1-static/bin/g++  
    2 CCFLAGS=-O2 -Wall -Werror -fPIC 
     1TOPDIR= ../.. 
    32 
    4 all: 
    5         $(CC) $(CCFLAGS) -o build/Plugin.os -c Plugin.cpp 
    6         $(CC) $(CCFLAGS) -o build/ScriptConnector.os -c ScriptConnector.cpp 
    7         $(CC) $(CCFLAGS) -o build/ScriptLoader.os -c ScriptLoader.cpp 
    8         $(CC) $(CCFLAGS) -o build/Script.os -c Script.cpp 
    9         $(CC) -shared -o libluaScripting.so build/Plugin.os build/ScriptConnector.os build/ScriptLoader.os build/Script.os -L/usr/local/gcc-4.1.1-static/lib -lstdc++ -llua -lm 
     3#----------------------------------------------- 
     4# Include defs for defining the variables 
     5#----------------------------------------------- 
     6include $(TOPDIR)/Makedefs 
     7 
     8#----------------------------------------------- 
     9# We have to built this files into the library 
     10#----------------------------------------------- 
     11CPPFILES= Plugin.cpp\ 
     12        Script.cpp\ 
     13        ScriptConnector.cpp\ 
     14        ScriptLoader.cpp 
     15                         
     16TARGET=  luaScripting.so 
     17 
     18INCPATH += -I../include 
     19CFLAGS += -fPIC 
     20LIBS += -llua 
     21 
     22#----------------------------------------------- 
     23# Include rules for handling the objects 
     24#----------------------------------------------- 
     25include $(TOPDIR)/Makerules 
     26sinclude make.dep 
  • nrEngine/src/Makefile

    r7 r8  
    5555INCPATH += -I../include 
    5656CFLAGS += -fPIC 
    57 #LIBS +=  
     57LIBS += -ldl -lboost_thread 
    5858 
    5959#----------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.