2 CFLAGS
= -Wall
-pipe
-march
=core2
-mtune
=generic
3 LDFLAGS
= -lz
-lm
-lbam
8 MAKEARG
= $(CFLAGS
) $(OPT
)
11 c99objects
= .
/objects
/chrtable.o
12 mainobjects
= .
/objects
/constator.o
13 objects
= $(cobjects
) $(c99objects
)
16 all: $(objects
) $(exefiles
)
18 constator
: $(objects
) $(mainobjects
)
19 $(CC
) $(CFLAGS
) $(OPT
) $(LDFLAGS
) -o constator
$(objects
) .
/objects
/constator.o
21 $(cobjects
): $(OBJDIR
)%.o
: %.c tmpdir
22 $(CC
) $(MAKEARG
) -c
$< -o
$@
24 $(c99objects
) $(mainobjects
): $(OBJDIR
)%.o
: %.c tmpdir
25 $(CC
) -std
=gnu99
$(MAKEARG
) -c
$< -o
$@
27 debug
: override MAKEARG
:= $(CFLAGS
) -O
-D DEBUGa
-g
33 test: override MAKEARG
:= $(CFLAGS
) -O
-D DEBUGa
-g
35 valgrind
--leak-check
=yes .
/constator t.bam
39 -rm $(exefiles
) $(mainobjects
) $(objects
)