Skip to content

Commit

Permalink
Fix the '.gitignore' file in the main directory and add the missing '…
Browse files Browse the repository at this point in the history
…Makefile's
  • Loading branch information
igl42 committed Aug 22, 2012
1 parent 8554784 commit c2e5804
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Makefile
!src/math/Makefile
!src/util/Makefile
*.cfg

59 changes: 59 additions & 0 deletions src/math/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#==================================================================================================
#
# Makefile for the math module of the Blaze library
#
# Copyright (C) 2011 Klaus Iglberger - All Rights Reserved
#
# This file is part of the Blaze library. This library is free software; you can redistribute
# it and/or modify it under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with a special
# exception for linking and compiling against the Blaze library, the so-called "runtime
# exception"; see the file COPYING. If not, see http://www.gnu.org/licenses/.
#
#==================================================================================================


# Module
MODULE = MATH


# Includes
CXXFLAGS += -I$(INSTALL_PATH)
ifneq ($(BOOST_INCLUDE_PATH),)
CXXFLAGS += -isystem $(BOOST_INCLUDE_PATH)
endif


# Setting the source, object and dependency files
SRC = $(wildcard ./solvers/*.cpp)
OBJ = $(SRC:.cpp=.o)
DEP = $(SRC:.cpp=.d)


# Rules
default: $(OBJ)
@$(foreach dir,$(OBJ),cp -p $(dir) $(OBJECT_PATH)/$(MODULE)_$(notdir $(dir));)

clean:
@$(RM) $(OBJ) $(DEP)


# Makefile includes
ifneq ($(MAKECMDGOALS),clean)
-include $(DEP)
endif


# Makefile generation
%.d: %.cpp
@$(CXX) -MM -MP -MT "$*.o $*.d" -MF $@ $(CXXFLAGS) $<


# Setting the independent commands
.PHONY: default clean
59 changes: 59 additions & 0 deletions src/util/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#==================================================================================================
#
# Makefile for the utility module of the Blaze library
#
# Copyright (C) 2011 Klaus Iglberger - All Rights Reserved
#
# This file is part of the Blaze library. This library is free software; you can redistribute
# it and/or modify it under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with a special
# exception for linking and compiling against the Blaze library, the so-called "runtime
# exception"; see the file COPYING. If not, see http://www.gnu.org/licenses/.
#
#==================================================================================================


# Module
MODULE = UTIL


# Includes
CXXFLAGS += -I$(INSTALL_PATH)
ifneq ($(BOOST_INCLUDE_PATH),)
CXXFLAGS += -isystem $(BOOST_INCLUDE_PATH)
endif


# Setting the source, object and dependency files
SRC = $(wildcard ./*.cpp ./logging/*.cpp ./threadpool/*.cpp)
OBJ = $(SRC:.cpp=.o)
DEP = $(SRC:.cpp=.d)


# Rules
default: $(OBJ)
@$(foreach dir,$(OBJ),cp -p $(dir) $(OBJECT_PATH)/$(MODULE)_$(notdir $(dir));)

clean:
@$(RM) $(OBJ) $(DEP)


# Makefile includes
ifneq ($(MAKECMDGOALS),clean)
-include $(DEP)
endif


# Makefile generation
%.d: %.cpp
@$(CXX) -MM -MP -MT "$*.o $*.d" -MF $@ $(CXXFLAGS) $<


# Setting the independent commands
.PHONY: default clean

0 comments on commit c2e5804

Please sign in to comment.