init project

Thu, 23 Jan 2014 14:45:34 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 23 Jan 2014 14:45:34 +0100
changeset 0
98034084033f
child 1
e5fbb8f9edbe

init project

.hgignore file | annotate | diff | comparison | revisions
LICENSE 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/main.c file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Thu Jan 23 14:45:34 2014 +0100
     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/LICENSE	Thu Jan 23 14:45:34 2014 +0100
     2.3 @@ -0,0 +1,23 @@
     2.4 +Copyright 2014 Mike Becker. All rights reserved.
     2.5 +
     2.6 +Redistribution and use in source and binary forms, with or without
     2.7 +modification, are permitted provided that the following conditions are met:
     2.8 +
     2.9 +  1. Redistributions of source code must retain the above copyright
    2.10 +     notice, this list of conditions and the following disclaimer.
    2.11 +
    2.12 +  2. Redistributions in binary form must reproduce the above copyright
    2.13 +     notice, this list of conditions and the following disclaimer in the
    2.14 +     documentation and/or other materials provided with the distribution.
    2.15 +
    2.16 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    2.17 +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    2.18 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    2.19 +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    2.20 +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    2.21 +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    2.22 +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    2.23 +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    2.24 +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    2.25 +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    2.26 +POSSIBILITY OF SUCH DAMAGE.
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/Makefile	Thu Jan 23 14:45:34 2014 +0100
     3.3 @@ -0,0 +1,40 @@
     3.4 +#
     3.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     3.6 +#
     3.7 +# Copyright 2014 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 +include conf.mk
    3.33 +
    3.34 +all: clean compile
    3.35 +	
    3.36 +compile: build
    3.37 +	cd src; $(MAKE)
    3.38 +
    3.39 +build:
    3.40 +	$(MKDIR) build
    3.41 +	
    3.42 +clean:
    3.43 +	$(RM) -f -R build
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/conf.mk	Thu Jan 23 14:45:34 2014 +0100
     4.3 @@ -0,0 +1,39 @@
     4.4 +#
     4.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4.6 +#
     4.7 +# Copyright 2014 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 +# system related
    4.33 +MKDIR   = mkdir
    4.34 +RM      = rm
    4.35 +
    4.36 +# build related
    4.37 +BIN     = c2html
    4.38 +CC      = gcc
    4.39 +CFLAGS  = -g -O2 -std=gnu99 -Wall -Werror -pedantic
    4.40 +LD      = gcc
    4.41 +LDFLAGS =
    4.42 +OBJ_EXT = .o
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/src/Makefile	Thu Jan 23 14:45:34 2014 +0100
     5.3 @@ -0,0 +1,41 @@
     5.4 +#
     5.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     5.6 +#
     5.7 +# Copyright 2014 Mike Becker. All rights reserved.
     5.8 +#
     5.9 +# Redistribution and use in source and binary forms, with or without
    5.10 +# modification, are permitted provided that the following conditions are met:
    5.11 +#
    5.12 +#   1. Redistributions of source code must retain the above copyright
    5.13 +#      notice, this list of conditions and the following disclaimer.
    5.14 +#
    5.15 +#   2. Redistributions in binary form must reproduce the above copyright
    5.16 +#      notice, this list of conditions and the following disclaimer in the
    5.17 +#      documentation and/or other materials provided with the distribution.
    5.18 +#
    5.19 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    5.20 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    5.21 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    5.22 +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    5.23 +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    5.24 +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    5.25 +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    5.26 +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    5.27 +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    5.28 +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    5.29 +# POSSIBILITY OF SUCH DAMAGE.
    5.30 +#
    5.31 +
    5.32 +include ../conf.mk
    5.33 +
    5.34 +SRC  = main.c
    5.35 +
    5.36 +OBJ = $(SRC:%.c=../build/%$(OBJ_EXT))
    5.37 +
    5.38 +all: $(OBJ)
    5.39 +	$(LD) -o ../build/$(BIN) $^ $(LDFLAGS)
    5.40 +	
    5.41 +
    5.42 +../build/%$(OBJ_EXT): %.c
    5.43 +	$(CC) -o $@ $(CFLAGS) -c $<
    5.44 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/src/main.c	Thu Jan 23 14:45:34 2014 +0100
     6.3 @@ -0,0 +1,35 @@
     6.4 +/*
     6.5 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     6.6 + *
     6.7 + * Copyright 2014 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 +
    6.33 +#include <stdlib.h>
    6.34 +
    6.35 +int main(int argc, char **argv) {
    6.36 +    return EXIT_SUCCESS;
    6.37 +}
    6.38 +

mercurial