init project

Fri, 24 May 2013 11:04:56 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 24 May 2013 11:04:56 +0200
changeset 0
e78e463e1aa9
child 1
12c482ea4fc4

init project

.hgignore file | annotate | diff | comparison | revisions
Makefile file | annotate | diff | comparison | revisions
conf.mk file | annotate | diff | comparison | revisions
src/Makefile file | annotate | diff | comparison | revisions
src/c2html.c file | annotate | diff | comparison | revisions
src/obj.mk file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Fri May 24 11:04:56 2013 +0200
     1.3 @@ -0,0 +1,7 @@
     1.4 +\.orig\..*$
     1.5 +\.orig$
     1.6 +\.chg\..*$
     1.7 +\.rej$
     1.8 +\.conflict\~$
     1.9 +^build/.*$
    1.10 +^nbproject/.*$
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/Makefile	Fri May 24 11:04:56 2013 +0200
     2.3 @@ -0,0 +1,41 @@
     2.4 +#
     2.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     2.6 +#
     2.7 +# Copyright 2013 Mike Becker. All rights reserved.
     2.8 +#
     2.9 +# Redistribution and use in source and binary forms, with or without
    2.10 +# modification, are permitted provided that the following conditions are met:
    2.11 +#
    2.12 +#   1. Redistributions of source code must retain the above copyright
    2.13 +#      notice, this list of conditions and the following disclaimer.
    2.14 +#
    2.15 +#   2. Redistributions in binary form must reproduce the above copyright
    2.16 +#      notice, this list of conditions and the following disclaimer in the
    2.17 +#      documentation and/or other materials provided with the distribution.
    2.18 +#
    2.19 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    2.20 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    2.21 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    2.22 +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    2.23 +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    2.24 +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    2.25 +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    2.26 +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    2.27 +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    2.28 +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    2.29 +# POSSIBILITY OF SUCH DAMAGE.
    2.30 +#
    2.31 +
    2.32 +include conf.mk
    2.33 +
    2.34 +all: clean compile
    2.35 +	
    2.36 +compile: build
    2.37 +	cd src; $(MAKE) $(BIN)
    2.38 +
    2.39 +build:
    2.40 +	$(MKDIR) build
    2.41 +	
    2.42 +clean:
    2.43 +	$(RM) -f -R build
    2.44 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/conf.mk	Fri May 24 11:04:56 2013 +0200
     3.3 @@ -0,0 +1,43 @@
     3.4 +#
     3.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     3.6 +#
     3.7 +# Copyright 2013 Mike Becker. All rights reserved.
     3.8 +#
     3.9 +# Redistribution and use in source and binary forms, with or without
    3.10 +# modification, are permitted provided that the following conditions are met:
    3.11 +#
    3.12 +#   1. Redistributions of source code must retain the above copyright
    3.13 +#      notice, this list of conditions and the following disclaimer.
    3.14 +#
    3.15 +#   2. Redistributions in binary form must reproduce the above copyright
    3.16 +#      notice, this list of conditions and the following disclaimer in the
    3.17 +#      documentation and/or other materials provided with the distribution.
    3.18 +#
    3.19 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    3.20 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    3.21 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    3.22 +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    3.23 +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    3.24 +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    3.25 +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    3.26 +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    3.27 +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    3.28 +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    3.29 +# POSSIBILITY OF SUCH DAMAGE.
    3.30 +#
    3.31 +
    3.32 +# system related
    3.33 +MKDIR   = mkdir
    3.34 +RM      = rm
    3.35 +
    3.36 +# build related
    3.37 +BIN     = c2html
    3.38 +CC      = gcc
    3.39 +CFLAGS  = -g -O2 -std=gnu99 -Wall -Werror -pedantic
    3.40 +LD      = gcc
    3.41 +LDFLAGS =
    3.42 +OBJEXT  = o
    3.43 +LIBEXT  = a
    3.44 +AR      = ar
    3.45 +ARFLAGS = -r
    3.46 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/src/Makefile	Fri May 24 11:04:56 2013 +0200
     4.3 @@ -0,0 +1,41 @@
     4.4 +#
     4.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4.6 +#
     4.7 +# Copyright 2013 Mike Becker. All rights reserved.
     4.8 +#
     4.9 +# Redistribution and use in source and binary forms, with or without
    4.10 +# modification, are permitted provided that the following conditions are met:
    4.11 +#
    4.12 +#   1. Redistributions of source code must retain the above copyright
    4.13 +#      notice, this list of conditions and the following disclaimer.
    4.14 +#
    4.15 +#   2. Redistributions in binary form must reproduce the above copyright
    4.16 +#      notice, this list of conditions and the following disclaimer in the
    4.17 +#      documentation and/or other materials provided with the distribution.
    4.18 +#
    4.19 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    4.20 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    4.21 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    4.22 +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    4.23 +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    4.24 +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    4.25 +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    4.26 +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    4.27 +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    4.28 +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    4.29 +# POSSIBILITY OF SUCH DAMAGE.
    4.30 +#
    4.31 +
    4.32 +include ../conf.mk
    4.33 +
    4.34 +DST = ../build
    4.35 +
    4.36 +include obj.mk
    4.37 +
    4.38 +$(BIN): $(OBJ)
    4.39 +	$(LD) -o $(DST)/$@ $^ $(LDFLAGS)
    4.40 +	
    4.41 +
    4.42 +$(DST)/%.$(OBJEXT): %.c
    4.43 +	$(CC) -o $@ $(CFLAGS) -c $<
    4.44 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/src/c2html.c	Fri May 24 11:04:56 2013 +0200
     5.3 @@ -0,0 +1,4 @@
     5.4 +int main(int argc, char** argv) {
     5.5 +  return 0;
     5.6 +}
     5.7 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/src/obj.mk	Fri May 24 11:04:56 2013 +0200
     6.3 @@ -0,0 +1,31 @@
     6.4 +#
     6.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     6.6 +#
     6.7 +# Copyright 2013 Mike Becker. All rights reserved.
     6.8 +#
     6.9 +# Redistribution and use in source and binary forms, with or without
    6.10 +# modification, are permitted provided that the following conditions are met:
    6.11 +#
    6.12 +#   1. Redistributions of source code must retain the above copyright
    6.13 +#      notice, this list of conditions and the following disclaimer.
    6.14 +#
    6.15 +#   2. Redistributions in binary form must reproduce the above copyright
    6.16 +#      notice, this list of conditions and the following disclaimer in the
    6.17 +#      documentation and/or other materials provided with the distribution.
    6.18 +#
    6.19 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    6.20 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    6.21 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    6.22 +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    6.23 +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    6.24 +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    6.25 +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    6.26 +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    6.27 +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    6.28 +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    6.29 +# POSSIBILITY OF SUCH DAMAGE.
    6.30 +#
    6.31 +
    6.32 +OBJ = $(addsuffix .$(OBJEXT),$(addprefix $(DST)/, \
    6.33 +    c2html \
    6.34 +))

mercurial