summaryrefslogtreecommitdiff
path: root/lang/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/Makefile')
-rw-r--r--lang/Makefile304
1 files changed, 223 insertions, 81 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 2a012be32..baf5838e0 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -1,82 +1,224 @@
-# Makefile for language module
-
-MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \
- 'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \
- 'INCLUDEDIR=${INCLUDEDIR}' 'RM=${RM}' 'CP=${CP}' \
- 'TOUCH=${TOUCH}' 'SHELL=${SHELL}' 'DATDEST=${DATDEST}' \
- 'RUNGROUP=${RUNGROUP}' 'MAKEBIN=${MAKEBIN}'
-
-LANGOBJS = cat de en_us es fr gr hun it nl pl pt ru tr
-LANGSRCS = cat.l de.l en_us.l es.l fr.l gr.l hun.l it.l nl.l pl.l pt.l ru.l tr.l
-
-LANGCOMP = ./langcomp
-#LANGCOMP = ./langcomp -w
-
-
-all: $(LANGOBJS)
-
-distclean: clean spotless
-
-install: all
- test -d $(DATDEST)/languages || mkdir $(DATDEST)/languages
- @if [ "$(RUNGROUP)" ] ; then \
- echo chgrp -R $(RUNGROUP) $(DATDEST)/languages ; \
- chgrp -R $(RUNGROUP) $(DATDEST)/languages ; \
- echo chmod -R g+rw $(DATDEST)/languages ; \
- chmod -R g+rw $(DATDEST)/languages ; \
- $(CP) $(LANGOBJS) $(DATDEST)/languages ; \
- echo chgrp -R $(RUNGROUP) $(DATDEST)/languages ; \
- chgrp -R $(RUNGROUP) $(DATDEST)/languages/* ; \
- echo chmod -R g+rw $(DATDEST)/languages/* ; \
- chmod -R g+rw $(DATDEST)/languages/* ; \
- fi
- @if [ ! "$(RUNGROUP)" ] ; then \
- chmod 700 $(DATDEST)/languages/ ; \
- $(CP) $(LANGOBJS) $(DATDEST)/languages ; \
- chmod 600 $(DATDEST)/languages/* ; \
- fi
-
+# CMAKE generated file: DO NOT EDIT!
+# Generated by "Unix Makefiles" Generator, CMake Version 2.6
+
+# Default target executed when no arguments are given to make.
+default_target: all
+.PHONY : default_target
+
+#=============================================================================
+# Special targets provided by cmake.
+
+# Disable implicit rules so canoncical targets will work.
+.SUFFIXES:
+
+# Remove some rules from gmake that .SUFFIXES does not remove.
+SUFFIXES =
+
+.SUFFIXES: .hpux_make_needs_suffix_list
+
+# Suppress display of executed commands.
+$(VERBOSE).SILENT:
+
+# A target that is always out of date.
+cmake_force:
+.PHONY : cmake_force
+
+#=============================================================================
+# Set environment variables for the build.
+
+# The shell in which to execute make rules.
+SHELL = /bin/sh
+
+# The CMake executable.
+CMAKE_COMMAND = /usr/local/bin/cmake
+
+# The command to remove a file.
+RM = /usr/local/bin/cmake -E remove -f
+
+# The program to use to edit the cache.
+CMAKE_EDIT_COMMAND = /usr/local/bin/ccmake
+
+# The top-level source directory on which CMake was run.
+CMAKE_SOURCE_DIR = /celes/anope
+
+# The top-level build directory on which CMake was run.
+CMAKE_BINARY_DIR = /celes/anope
+
+#=============================================================================
+# Targets provided globally by CMake.
+
+# Special rule for the target edit_cache
+edit_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
+ cd /celes/anope/lang && /usr/local/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+.PHONY : edit_cache
+
+# Special rule for the target edit_cache
+edit_cache/fast: edit_cache
+.PHONY : edit_cache/fast
+
+# Special rule for the target install
+install: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ cd /celes/anope/lang && /usr/local/bin/cmake -P cmake_install.cmake
+.PHONY : install
+
+# Special rule for the target install
+install/fast: preinstall/fast
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ cd /celes/anope/lang && /usr/local/bin/cmake -P cmake_install.cmake
+.PHONY : install/fast
+
+# Special rule for the target install/local
+install/local: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
+ cd /celes/anope/lang && /usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
+.PHONY : install/local
+
+# Special rule for the target install/local
+install/local/fast: install/local
+.PHONY : install/local/fast
+
+# Special rule for the target install/strip
+install/strip: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
+ cd /celes/anope/lang && /usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
+.PHONY : install/strip
+
+# Special rule for the target install/strip
+install/strip/fast: install/strip
+.PHONY : install/strip/fast
+
+# Special rule for the target list_install_components
+list_install_components:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
+.PHONY : list_install_components
+
+# Special rule for the target list_install_components
+list_install_components/fast: list_install_components
+.PHONY : list_install_components/fast
+
+# Special rule for the target rebuild_cache
+rebuild_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
+ cd /celes/anope/lang && /usr/local/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+.PHONY : rebuild_cache
+
+# Special rule for the target rebuild_cache
+rebuild_cache/fast: rebuild_cache
+.PHONY : rebuild_cache/fast
+
+# The main all target
+all: cmake_check_build_system
+ cd /celes/anope && $(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles /celes/anope/lang/CMakeFiles/progress.make
+ cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/all
+ $(CMAKE_COMMAND) -E cmake_progress_start /celes/anope/CMakeFiles 0
+.PHONY : all
+
+# The main clean target
clean:
- rm -f $(LANGOBJS) langcomp language.h
-
-spotless: clean
- rm -f index
-
-
-cat: cat.l langcomp index
- @./langcomp $@.l
-de: de.l langcomp index
- @./langcomp $@.l
-en_us: en_us.l langcomp index
- @./langcomp $@.l
-es: es.l langcomp index
- @./langcomp $@.l
-fr: fr.l langcomp index
- @./langcomp $@.l
-gr: gr.l langcomp index
- @./langcomp $@.l
-hun: hun.l langcomp index
- @./langcomp $@.l
-it: it.l langcomp index
- @./langcomp $@.l
-nl: nl.l langcomp index
- @./langcomp $@.l
-pl: pl.l langcomp index
- @./langcomp $@.l
-pt: pt.l langcomp index
- @./langcomp $@.l
-ru: ru.l langcomp index
- @./langcomp $@.l
-tr: tr.l langcomp index
- @./langcomp $@.l
-
-langcomp: langcomp.c
- @$(MAKEBIN) $(CC) $(CFLAGS) langcomp.c -o $@
-
-
-language.h: index Makefile
- @perl -e <index >$@ 'print STDERR "Generating language.h... "; $$i=0; while (<>) { chop; printf "#define %-32s %d\n", $$_, $$i++; } print "\n#define NUM_STRINGS $$i\n"; print STDERR "$$i strings\n";'
- @cp language.h ../include
-
-index: en_us.l
- @grep '^[A-Z]' en_us.l >index
+ cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/clean
+.PHONY : clean
+
+# The main clean target
+clean/fast: clean
+.PHONY : clean/fast
+
+# Prepare targets for installation.
+preinstall: all
+ cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/preinstall
+.PHONY : preinstall
+
+# Prepare targets for installation.
+preinstall/fast:
+ cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/preinstall
+.PHONY : preinstall/fast
+
+# clear depends
+depend:
+ cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
+.PHONY : depend
+
+# Convenience name for target.
+lang/CMakeFiles/langcomp.dir/rule:
+ cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/CMakeFiles/langcomp.dir/rule
+.PHONY : lang/CMakeFiles/langcomp.dir/rule
+
+# Convenience name for target.
+langcomp: lang/CMakeFiles/langcomp.dir/rule
+.PHONY : langcomp
+
+# fast build rule for target.
+langcomp/fast:
+ cd /celes/anope && $(MAKE) -f lang/CMakeFiles/langcomp.dir/build.make lang/CMakeFiles/langcomp.dir/build
+.PHONY : langcomp/fast
+
+# Convenience name for target.
+lang/CMakeFiles/language.dir/rule:
+ cd /celes/anope && $(MAKE) -f CMakeFiles/Makefile2 lang/CMakeFiles/language.dir/rule
+.PHONY : lang/CMakeFiles/language.dir/rule
+
+# Convenience name for target.
+language: lang/CMakeFiles/language.dir/rule
+.PHONY : language
+
+# fast build rule for target.
+language/fast:
+ cd /celes/anope && $(MAKE) -f lang/CMakeFiles/language.dir/build.make lang/CMakeFiles/language.dir/build
+.PHONY : language/fast
+
+langcomp.o: langcomp.c.o
+.PHONY : langcomp.o
+
+# target to build an object file
+langcomp.c.o:
+ cd /celes/anope && $(MAKE) -f lang/CMakeFiles/langcomp.dir/build.make lang/CMakeFiles/langcomp.dir/langcomp.c.o
+.PHONY : langcomp.c.o
+
+langcomp.i: langcomp.c.i
+.PHONY : langcomp.i
+
+# target to preprocess a source file
+langcomp.c.i:
+ cd /celes/anope && $(MAKE) -f lang/CMakeFiles/langcomp.dir/build.make lang/CMakeFiles/langcomp.dir/langcomp.c.i
+.PHONY : langcomp.c.i
+
+langcomp.s: langcomp.c.s
+.PHONY : langcomp.s
+
+# target to generate assembly for a file
+langcomp.c.s:
+ cd /celes/anope && $(MAKE) -f lang/CMakeFiles/langcomp.dir/build.make lang/CMakeFiles/langcomp.dir/langcomp.c.s
+.PHONY : langcomp.c.s
+
+# Help Target
+help:
+ @echo "The following are some of the valid targets for this Makefile:"
+ @echo "... all (the default if no target is provided)"
+ @echo "... clean"
+ @echo "... depend"
+ @echo "... edit_cache"
+ @echo "... install"
+ @echo "... install/local"
+ @echo "... install/strip"
+ @echo "... langcomp"
+ @echo "... language"
+ @echo "... list_install_components"
+ @echo "... rebuild_cache"
+ @echo "... langcomp.o"
+ @echo "... langcomp.i"
+ @echo "... langcomp.s"
+.PHONY : help
+
+
+
+#=============================================================================
+# Special targets to cleanup operation of make.
+
+# Special rule to run CMake to check the build system integrity.
+# No rule that depends on this can have commands that come from listfiles
+# because they might be regenerated.
+cmake_check_build_system:
+ cd /celes/anope && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
+.PHONY : cmake_check_build_system
+