Makefile
changeset 138 dff18d1ac2af
parent 137 d8a0984b72fc
child 143 88d9b8bfa7a5
equal deleted inserted replaced
137:d8a0984b72fc 138:dff18d1ac2af
     1      CC = gcc -g -ggdb $(PROF)
     1      CC = gcc -g -ggdb $(PROF)
     2     CPP = g++ -g -ggdb $(PROF)
     2     CPP = g++ -g -ggdb $(PROF)
     3  CFLAGS = -Wall -O2 -Iinclude $(EXTRA)
     3  CFLAGS = -Wall -O2 -Iinclude $(EXTRA)
     4   EXTRA =
     4   EXTRA = -I/usr/local/include
     5 LDFLAGS = -L/usr/lib
     5 LDFLAGS = -L/usr/lib -L/usr/local/lib
     6      RM = rm -f
     6      RM = rm -f
     7    FIND = find
     7    FIND = find
     8    MAKE = make
     8    MAKE = make
     9  INDENT = indent
     9  INDENT = indent
    10  ERASER = eraser
    10  ERASER = eraser
    11 
    11 
    12 ifeq ("$(PROFILER)", "linux")
    12 ifeq ("$(PROFILER)", "linux")
    13    PROF = -fprofile-arcs -ftest-coverage -pg
    13    PROF = -fprofile-arcs -ftest-coverage -pg
    14 endif
    14 endif
    15 
    15 
    16 TARGET  = ncurses
    16 TARGET  = numerierung
    17 TARGET += numerierung
       
    18 TARGET += xdemo
       
    19 TARGET += signals
    17 TARGET += signals
    20 TARGET += tree
    18 TARGET += tree
    21 TARGET += utf8
    19 TARGET += utf8
    22 TARGET += file_demo
    20 TARGET += file_demo
    23 TARGET += testcase
    21 TARGET += testcase
    30 TARGET += crypt
    28 TARGET += crypt
    31 TARGET += tokenpasting
    29 TARGET += tokenpasting
    32 TARGET += hex2chars
    30 TARGET += hex2chars
    33 TARGET += floating
    31 TARGET += floating
    34 TARGET += max
    32 TARGET += max
    35 TARGET += recording
       
    36 TARGET += endian
    33 TARGET += endian
    37 TARGET += fak
    34 TARGET += fak
    38 TARGET += blackhole
    35 TARGET += blackhole
    39 TARGET += folge
    36 TARGET += folge
    40 TARGET += counter
    37 TARGET += counter
    41 TARGET += sudoku
    38 TARGET += sudoku
    42 TARGET += cunit
       
    43 TARGET += md5
       
    44 TARGET += md5rec
       
    45 TARGET += myprintf
    39 TARGET += myprintf
    46 TARGET += concatenation
    40 TARGET += concatenation
    47 TARGET += alpha_beta
    41 TARGET += alpha_beta
    48 TARGET += life
    42 TARGET += life
    49 TARGET += bad_alloc
    43 TARGET += bad_alloc
    50 TARGET += lotto
    44 TARGET += lotto
    51 TARGET += database
       
    52 TARGET += gauss
    45 TARGET += gauss
    53 TARGET += mem2swap
    46 TARGET += mem2swap
    54 TARGET += prog_limit
    47 TARGET += prog_limit
    55 TARGET += connection
    48 TARGET += connection
    56 TARGET += copy
    49 TARGET += copy
    57 TARGET += function_pointers
    50 TARGET += function_pointers
    58 TARGET += sort
    51 TARGET += sort
    59 TARGET += min2time
    52 TARGET += min2time
    60 TARGET += recursive_compiler
    53 TARGET += recursive_compiler
    61 TARGET += getpwnam_error
    54 TARGET += getpwnam_error
    62 TARGET += xmlparser
       
    63 TARGET += vector
    55 TARGET += vector
    64 TARGET += base10
    56 TARGET += base10
    65 TARGET += files
    57 TARGET += files
    66 TARGET += fork
    58 TARGET += fork
    67 TARGET += duff
    59 TARGET += duff
    75 TARGET += pipe
    67 TARGET += pipe
    76 TARGET += compliteral
    68 TARGET += compliteral
    77 TARGET += getbits
    69 TARGET += getbits
    78 TARGET += fun
    70 TARGET += fun
    79 
    71 
       
    72 # needs ncursesw
       
    73 TARGET  += ncurses
       
    74 
       
    75 #needs xpat
       
    76 TARGET += xmlparser
       
    77 
       
    78 # needs CUnit
       
    79 TARGET += cunit
       
    80 
       
    81 # needs postgresql
       
    82 TARGET += database
       
    83 
       
    84 # needs lsflib/
       
    85 TARGET += md5
       
    86 TARGET += md5rec
       
    87 
       
    88 # needs x11
       
    89 TARGET += xdemo
       
    90 
       
    91 # needs linux
       
    92 TARGET += recording
       
    93 
    80 .SUFFIXES: .c .cc .asm
    94 .SUFFIXES: .c .cc .asm
    81 
    95 
    82 .c.o:
    96 .c.o:
    83 	@echo Compiling $< ...
    97 	@echo Compiling $< ...
    84 	@$(CC) -c $(CFLAGS) -o $@ $<
    98 	@$(CC) -c $(CFLAGS) -o $@ $<