Makefile
author Markus Bröker<broeker.markus@googlemail.com>
Sun, 22 Oct 2017 22:55:27 +0200
changeset 172 43ae72f88d06
parent 169 df7c720bcaa6
permissions -rw-r--r--
2er Komplement und integerToString
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
70
ded389a5dc2a Profiling support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 67
diff changeset
     1
     CC = gcc -g -ggdb $(PROF)
ded389a5dc2a Profiling support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 67
diff changeset
     2
    CPP = g++ -g -ggdb $(PROF)
119
305d2ca32936 crypt.h seems to be broken on many systems.
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 117
diff changeset
     3
 CFLAGS = -Wall -O2 -Iinclude $(EXTRA)
138
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
     4
  EXTRA = -I/usr/local/include
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
     5
LDFLAGS = -L/usr/lib -L/usr/local/lib
71
9ac5a589211e Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 70
diff changeset
     6
     RM = rm -f
9ac5a589211e Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 70
diff changeset
     7
   FIND = find
122
50ba3b0e271a GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 119
diff changeset
     8
   MAKE = make
50ba3b0e271a GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 119
diff changeset
     9
 INDENT = indent
50ba3b0e271a GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 119
diff changeset
    10
 ERASER = eraser
71
9ac5a589211e Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 70
diff changeset
    11
73
d0578510aea1 Changelog: Makefile and sort.c
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 71
diff changeset
    12
ifeq ("$(PROFILER)", "linux")
70
ded389a5dc2a Profiling support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 67
diff changeset
    13
   PROF = -fprofile-arcs -ftest-coverage -pg
ded389a5dc2a Profiling support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 67
diff changeset
    14
endif
66
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    15
138
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    16
TARGET  = numerierung
66
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    17
TARGET += signals
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    18
TARGET += tree
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    19
TARGET += utf8
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    20
TARGET += file_demo
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    21
TARGET += testcase
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    22
TARGET += atoi_print
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    23
TARGET += data_types
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    24
TARGET += dnsresolve
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    25
TARGET += nomalloc
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    26
TARGET += urandom
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    27
TARGET += threads
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    28
TARGET += crypt
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    29
TARGET += tokenpasting
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    30
TARGET += hex2chars
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    31
TARGET += floating
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    32
TARGET += max
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    33
TARGET += endian
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    34
TARGET += fak
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    35
TARGET += blackhole
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    36
TARGET += folge
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    37
TARGET += counter
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    38
TARGET += sudoku
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    39
TARGET += myprintf
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    40
TARGET += concatenation
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    41
TARGET += alpha_beta
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    42
TARGET += life
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    43
TARGET += bad_alloc
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    44
TARGET += lotto
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    45
TARGET += gauss
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    46
TARGET += mem2swap
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    47
TARGET += prog_limit
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    48
TARGET += connection
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    49
TARGET += copy
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    50
TARGET += function_pointers
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    51
TARGET += sort
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    52
TARGET += min2time
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    53
TARGET += recursive_compiler
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    54
TARGET += getpwnam_error
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    55
TARGET += vector
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    56
TARGET += base10
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    57
TARGET += files
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    58
TARGET += fork
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    59
TARGET += duff
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
    60
TARGET += unicode
67
abe63a276a36 file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 66
diff changeset
    61
TARGET += fts
74
829976007e62 getrandom macro fixed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 73
diff changeset
    62
TARGET += clplaner
76
c46968bddef5 A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 74
diff changeset
    63
TARGET += daemon
86
86b83a979d9e numbering game: guess a value
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 76
diff changeset
    64
TARGET += numbers
88
91fbc3ea240b how to use templates
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 86
diff changeset
    65
TARGET += nearest
90
d494813f9e5b cppdatabase added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 88
diff changeset
    66
TARGET += cppdatabase
107
244356bc3a20 Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 104
diff changeset
    67
TARGET += pipe
108
d6a52e0152fb Compont Literals in C aka Anonymous arrays
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 107
diff changeset
    68
TARGET += compliteral
130
f4b424b93e45 getbits added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 128
diff changeset
    69
TARGET += getbits
137
d8a0984b72fc From a 'C-Professional' :) Take a look at the source and pray
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 131
diff changeset
    70
TARGET += fun
144
f064cd793f8d sts: show time stamps added
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 143
diff changeset
    71
TARGET += sts
147
f9015072361f simple berkdb usage demo
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 145
diff changeset
    72
TARGET += berkdb
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    73
138
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    74
# needs ncursesw
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    75
TARGET  += ncurses
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    76
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    77
#needs xpat
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    78
TARGET += xmlparser
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    79
155
a54dcc86addb cunit needs libcunit and libncurses
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 147
diff changeset
    80
# needs CUnit, ncurses
138
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    81
TARGET += cunit
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    82
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    83
# needs postgresql
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    84
TARGET += database
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    85
143
88d9b8bfa7a5 a md5 demo is already in lsflib/tools
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 138
diff changeset
    86
# needs ssl
138
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    87
TARGET += md5
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    88
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    89
# needs x11
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    90
TARGET += xdemo
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    91
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    92
# needs linux
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    93
TARGET += recording
dff18d1ac2af Compatibility: We support Linux and BSD
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 137
diff changeset
    94
2
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
    95
.SUFFIXES: .c .cc .asm
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    96
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    97
.c.o:
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    98
	@echo Compiling $< ...
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    99
	@$(CC) -c $(CFLAGS) -o $@ $<
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   100
2
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
   101
.cc.o:
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
   102
	@echo Compiling $< ...
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
   103
	@$(CPP) -c $(CFLAGS) -o $@ $<
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
   104
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   105
.asm.o:
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   106
	@echo Assembling $< ...
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   107
	@$(NASM) $< -o $@
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   108
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   109
all: $(TARGET)
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   110
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   111
ncurses: ncurses.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   112
	@echo Linking $< ...
169
df7c720bcaa6 Service Pack 1 for a software from 2008 :gg
Markus Bröker<broeker.markus@googlemail.com>
parents: 164
diff changeset
   113
	@#$(CC) $(LDFLAGS) -o $@ $< -lncursesw
df7c720bcaa6 Service Pack 1 for a software from 2008 :gg
Markus Bröker<broeker.markus@googlemail.com>
parents: 164
diff changeset
   114
	@$(CC) $(LDFLAGS) -o $@ $< -lncurses
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   115
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   116
numerierung: numerierung.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   117
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   118
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   119
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   120
xdemo: xdemo.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   121
	@echo Linking $< ...
164
e1f4bba1097a Small Makefile changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 155
diff changeset
   122
	@$(CC) $(LDFLAGS) -o $@ $< -lX11
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   123
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   124
signals: signals.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   125
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   126
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   127
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   128
tree: tree.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   129
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   130
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   131
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   132
utf8: utf8.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   133
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   134
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   135
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   136
file_demo: file_demo.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   137
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   138
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   139
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   140
testcase: testcase.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   141
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   142
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   143
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   144
atoi_print: atoi_print.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   145
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   146
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   147
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   148
data_types: data_types.c
39
46d7ec9d63bd Project Parser
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 33
diff changeset
   149
	@echo Compiling $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   150
	@$(CC) $(LDFLAGS) -std=c99 -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   151
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   152
dnsresolve: dnsresolve.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   153
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   154
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   155
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   156
nomalloc: nomalloc.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   157
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   158
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   159
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   160
urandom: urandom.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   161
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   162
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   163
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   164
threads: threads.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   165
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   166
	@$(CC) $(LDFLAGS) -o $@ $< -lpthread
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   167
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   168
crypt: crypt.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   169
	@echo Linking $< ...
169
df7c720bcaa6 Service Pack 1 for a software from 2008 :gg
Markus Bröker<broeker.markus@googlemail.com>
parents: 164
diff changeset
   170
	@#$(CC) $(LDFLAGS) -o $@ $< -lcrypt
df7c720bcaa6 Service Pack 1 for a software from 2008 :gg
Markus Bröker<broeker.markus@googlemail.com>
parents: 164
diff changeset
   171
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   172
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   173
tokenpasting: tokenpasting.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   174
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   175
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   176
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   177
hex2chars: hex2chars.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   178
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   179
	@$(CC) $(LDFLAGS) -o $@ $< -lm
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   180
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   181
floating: floating.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   182
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   183
	@$(CC) $(LDFLAGS) -o $@ $< -lm
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   184
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   185
max: max.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   186
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   187
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   188
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   189
recording: recording.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   190
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   191
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   192
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   193
endian: endian.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   194
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   195
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   196
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   197
fak: fak.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   198
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   199
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   200
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   201
blackhole: blackhole.c
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   202
	@echo Compiling AND Linking $< WITH -O0 ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   203
	@$(CC) $(LDFLAGS) -O0 -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   204
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   205
folge: folge.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   206
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   207
	@$(CC) $(LDFLAGS) -o $@ $< -lm
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   208
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   209
counter: counter.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   210
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   211
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   212
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   213
sudoku: sudoku.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   214
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   215
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   216
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   217
cunit: cunit.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   218
	@echo Linking $< ...
155
a54dcc86addb cunit needs libcunit and libncurses
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 147
diff changeset
   219
	@$(CC) $(LDFLAGS) -o $@ $< -lcunit -lncurses
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   220
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   221
md5: md5.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   222
	@echo Linking $< ...
164
e1f4bba1097a Small Makefile changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 155
diff changeset
   223
	@$(CC) $(LDFLAGS) -o $@ $< -lssl -lcrypto
45
7197576fedcf pmc: namespace algebra for vector
Emilio Largo <largo@largo.homelinux.org>
parents: 43
diff changeset
   224
58
9609c54a54d3 myprintf.c added - replaces varargs.c
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 56
diff changeset
   225
myprintf: myprintf.o
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   226
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   227
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   228
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   229
concatenation: concatenation.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   230
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   231
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   232
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   233
alpha_beta: alpha_beta.o
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   234
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   235
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   236
2
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
   237
life: life.o
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   238
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   239
	@$(CC) $(LDFLAGS) -o $@ $<
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   240
2
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
   241
bad_alloc: bad_alloc.o
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
   242
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   243
	@$(CPP) $(LDFLAGS) -o $@ $<
2
97beb75e5ac7 bad alloc example added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 0
diff changeset
   244
3
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   245
lotto: lotto.o
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   246
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   247
	@$(CC) $(LDFLAGS) -o $@ $<
3
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   248
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   249
mem2swap: mem2swap.o set_limit.o
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   250
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   251
	@$(CC) $(LDFLAGS) -o $@ mem2swap.o set_limit.o
3
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   252
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   253
prog_limit: prog_limit.o set_limit.o
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   254
	@echo Linking $< ...
147
f9015072361f simple berkdb usage demo
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 145
diff changeset
   255
	@$(CC) $(LDFLAGS) -o $@ $?
3
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   256
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   257
database: database.c
8
96d16dfe787a We use return EXIT_SUCCESS instead of return 0
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 3
diff changeset
   258
	@echo Compiling $< ...
96d16dfe787a We use return EXIT_SUCCESS instead of return 0
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 3
diff changeset
   259
	@$(CC) -c -I$(shell pg_config --includedir) $<
3
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   260
	@echo Linking $< ...
164
e1f4bba1097a Small Makefile changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 155
diff changeset
   261
	@$(CC) $(LDLAGS) -o $@ $@.o -lpq
3
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   262
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   263
gauss: gauss.o
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   264
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   265
	@$(CC) $(LDFLAGS) -o $@ $<
3
820ed7fb9314 database, gauss, lotto, mem2swap, prog_limit moved to demos
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 2
diff changeset
   266
10
f19f44e2e863 a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 8
diff changeset
   267
connection: connection.o
f19f44e2e863 a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 8
diff changeset
   268
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   269
	@$(CC) $(LDFLAGS) -o $@ $<
10
f19f44e2e863 a nice connection demo from an irc user
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 8
diff changeset
   270
11
0a8be4eac87e c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 10
diff changeset
   271
copy: copy.o
0a8be4eac87e c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 10
diff changeset
   272
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   273
	@$(CPP) $(LDFLAGS) -o $@ $<
11
0a8be4eac87e c++ file copy demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 10
diff changeset
   274
24
9cdad6c45b47 function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 11
diff changeset
   275
function_pointers: function_pointers.o
9cdad6c45b47 function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 11
diff changeset
   276
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   277
	@$(CC) $(LDFLAGS) -o $@ $<
24
9cdad6c45b47 function pointer demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 11
diff changeset
   278
25
6cf883f9c506 sort demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 24
diff changeset
   279
sort: sort.o
6cf883f9c506 sort demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 24
diff changeset
   280
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   281
	@$(CC) $(LDFLAGS) -o $@ $<
25
6cf883f9c506 sort demo added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 24
diff changeset
   282
26
d227047a3e88 convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 25
diff changeset
   283
min2time: min2time.o
d227047a3e88 convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 25
diff changeset
   284
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   285
	@$(CC) $(LDFLAGS) -o $@ $<
26
d227047a3e88 convert minutes to timestamps
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 25
diff changeset
   286
30
d037c433ec3e kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 26
diff changeset
   287
recursive_compiler: recursive_compiler.o
d037c433ec3e kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 26
diff changeset
   288
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   289
	@$(CC) $(LDFLAGS) -o $@ $<
30
d037c433ec3e kleiner auffschrischungskurs compilerbau...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 26
diff changeset
   290
33
5e0a954f7c0b getpwnam_error:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 32
diff changeset
   291
getpwnam_error: getpwnam_error.o
5e0a954f7c0b getpwnam_error:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 32
diff changeset
   292
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   293
	@$(CC) $(LDFLAGS) -o $@ $<
33
5e0a954f7c0b getpwnam_error:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 32
diff changeset
   294
41
574503cf7bb0 xml parsing demo
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 39
diff changeset
   295
xmlparser: xmlparser.o
574503cf7bb0 xml parsing demo
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 39
diff changeset
   296
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   297
	@$(CC) $(LDFLAGS) -o $@ $< -lexpat
41
574503cf7bb0 xml parsing demo
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 39
diff changeset
   298
43
cf8c1b5127b2 vector.cc Testcase
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 41
diff changeset
   299
vector: vector.o
cf8c1b5127b2 vector.cc Testcase
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 41
diff changeset
   300
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   301
	@$(CPP) $(LDFLAGS) -o $@ $<
43
cf8c1b5127b2 vector.cc Testcase
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 41
diff changeset
   302
51
a03372ef9714 base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 45
diff changeset
   303
base10: base10.o
a03372ef9714 base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 45
diff changeset
   304
	@echo Linking $< ...
164
e1f4bba1097a Small Makefile changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 155
diff changeset
   305
	@$(CC) $(LDFLAGS) -o $@ $< -lm
51
a03372ef9714 base10.c added and set_limit changed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 45
diff changeset
   306
56
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   307
files: files.o
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   308
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   309
	@$(CC) $(LDFLAGS) -o $@ $<
56
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   310
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   311
fork: fork.o
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   312
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   313
	@$(CC) $(LDFLAGS) -o $@ $<
56
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   314
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   315
duff: duff.o
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   316
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   317
	@$(CC) $(LDFLAGS) -o $@ $<
56
966ad681f25d Short Description
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 51
diff changeset
   318
62
b7061c0e239f unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 58
diff changeset
   319
unicode: unicode.c
76
c46968bddef5 A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 74
diff changeset
   320
	@echo Linking $<...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   321
	@$(CC) $(LDFLAGS) -std=c99 -o $@ $<
62
b7061c0e239f unicode.c added and myprintf improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 58
diff changeset
   322
67
abe63a276a36 file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 66
diff changeset
   323
fts: fts.c
abe63a276a36 file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 66
diff changeset
   324
	@echo Linking $< ...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   325
	@$(CC) -Wall -O2 $(LDFLAGS) $< -o $@
76
c46968bddef5 A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 74
diff changeset
   326
c46968bddef5 A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 74
diff changeset
   327
clplaner: clplaner.o
c46968bddef5 A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 74
diff changeset
   328
	@echo Linking $<...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   329
	@$(CC) $(LDFLAGS) -o $@ $<
67
abe63a276a36 file traversal demo && minor changes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 66
diff changeset
   330
76
c46968bddef5 A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 74
diff changeset
   331
daemon: daemon.c
c46968bddef5 A nice system daemon...
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 74
diff changeset
   332
	@echo Linking $<...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   333
	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
74
829976007e62 getrandom macro fixed
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 73
diff changeset
   334
86
86b83a979d9e numbering game: guess a value
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 76
diff changeset
   335
numbers: numbers.o
86b83a979d9e numbering game: guess a value
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 76
diff changeset
   336
	@echo Linking $<...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   337
	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
86
86b83a979d9e numbering game: guess a value
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 76
diff changeset
   338
88
91fbc3ea240b how to use templates
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 86
diff changeset
   339
nearest: nearest.o
91fbc3ea240b how to use templates
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 86
diff changeset
   340
	@echo Linking $<...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   341
	@$(CPP) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
88
91fbc3ea240b how to use templates
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 86
diff changeset
   342
90
d494813f9e5b cppdatabase added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 88
diff changeset
   343
cppdatabase: cppdatabase.o
d494813f9e5b cppdatabase added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 88
diff changeset
   344
	@echo Linking $<...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   345
	@$(CPP) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
90
d494813f9e5b cppdatabase added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 88
diff changeset
   346
107
244356bc3a20 Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 104
diff changeset
   347
pipe: pipe.o
244356bc3a20 Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 104
diff changeset
   348
	@echo Linking $<...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   349
	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
107
244356bc3a20 Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 104
diff changeset
   350
108
d6a52e0152fb Compont Literals in C aka Anonymous arrays
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 107
diff changeset
   351
compliteral: compliteral.o
d6a52e0152fb Compont Literals in C aka Anonymous arrays
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 107
diff changeset
   352
	@echo Linking $<...
117
5f3a34ba6489 Makefile: common linker flags
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 116
diff changeset
   353
	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
108
d6a52e0152fb Compont Literals in C aka Anonymous arrays
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 107
diff changeset
   354
130
f4b424b93e45 getbits added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 128
diff changeset
   355
getbits: getbits.o
f4b424b93e45 getbits added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 128
diff changeset
   356
	@echo Linking $<...
f4b424b93e45 getbits added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 128
diff changeset
   357
	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
f4b424b93e45 getbits added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 128
diff changeset
   358
137
d8a0984b72fc From a 'C-Professional' :) Take a look at the source and pray
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 131
diff changeset
   359
fun: fun.o
d8a0984b72fc From a 'C-Professional' :) Take a look at the source and pray
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 131
diff changeset
   360
	@echo Linking $<...
d8a0984b72fc From a 'C-Professional' :) Take a look at the source and pray
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 131
diff changeset
   361
	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
107
244356bc3a20 Pipes and COPY-ON-WRITE
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 104
diff changeset
   362
144
f064cd793f8d sts: show time stamps added
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 143
diff changeset
   363
sts: sts.o
f064cd793f8d sts: show time stamps added
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 143
diff changeset
   364
	@echo Linking $<...
145
63a5269fb113 removed code without effect
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 144
diff changeset
   365
	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
144
f064cd793f8d sts: show time stamps added
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 143
diff changeset
   366
147
f9015072361f simple berkdb usage demo
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 145
diff changeset
   367
berkdb: berkdb.o
f9015072361f simple berkdb usage demo
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 145
diff changeset
   368
	@echo Linking $<...
f9015072361f simple berkdb usage demo
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 145
diff changeset
   369
	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ -ldb
f9015072361f simple berkdb usage demo
Markus Brökers <mbroeker@largo.homelinux.org>
parents: 145
diff changeset
   370
66
2b4f786d9073 Common Makefile Style NAME += OBJECT
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 64
diff changeset
   371
.PHONY: beauty clean uninstall
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   372
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   373
clean:
71
9ac5a589211e Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 70
diff changeset
   374
ifdef FIND
116
ae784a3a45b1 The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 108
diff changeset
   375
	$(FIND) . -name '*~' -exec $(RM) {} \;
ae784a3a45b1 The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 108
diff changeset
   376
	$(FIND) . -name '*.[oa]' -exec $(RM) {} \;
ae784a3a45b1 The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 108
diff changeset
   377
	$(FIND) . -name '*.gcov' -exec $(RM) {} \;
ae784a3a45b1 The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 108
diff changeset
   378
	$(FIND) . -name '*.gcda' -exec $(RM) {} \;
ae784a3a45b1 The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 108
diff changeset
   379
	$(FIND) . -name '*.gcno' -exec $(RM) {} \;
ae784a3a45b1 The find utility needs a path parameter
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 108
diff changeset
   380
	$(FIND) . -name 'gmon.out' -exec $(RM) {} \;
71
9ac5a589211e Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 70
diff changeset
   381
endif
9ac5a589211e Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 70
diff changeset
   382
	$(RM) $(TARGET)
0
af501b0c1716 demos cvs copy
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
   383
64
993b97c4ad2d FORK ERROR in prog_limit and mem2swap:
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 62
diff changeset
   384
beauty:
71
9ac5a589211e Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 70
diff changeset
   385
ifdef FIND
122
50ba3b0e271a GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 119
diff changeset
   386
	$(FIND) . -name '*.[ch]' -exec $(INDENT) {} \;
50ba3b0e271a GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 119
diff changeset
   387
	$(FIND) . -name '*.[ch]' -exec $(ERASER) {} \;
50ba3b0e271a GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 119
diff changeset
   388
	$(FIND) . -name '*.java' -exec $(ERASER) {} \;
50ba3b0e271a GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 119
diff changeset
   389
	$(FIND) . -name 'Makefile*' -exec $(ERASER) {} \;
71
9ac5a589211e Makefile: Little Improvements
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 70
diff changeset
   390
endif
122
50ba3b0e271a GNU Make and GNU Indent
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 119
diff changeset
   391
	@$(MAKE) clean