# Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved
CC = gcc
-Cflags = -Wall -Werror -g -pg # for gprof
+CFLAGS = -Wall -Werror
-INC_DIR = ../inc/
-LIB_DIR = ../lib/
-
-INC = -I $(INC_DIR)
-LIB = -lm $(LIB_DIR)*.o
+INC = -I ../inc/ -I $(HOME)/maasha_install/include/
+LIB = -lm ../lib/*.o
all: test
-test: test_bits test_common test_fasta test_filesys test_hash test_list test_mem test_ucsc test_seq test_strings
-
-test_bits: test_bits.c $(LIB_DIR)bits.c
- $(CC) $(Cflags) $(INC) $(LIB) test_bits.c -o test_bits
-
-test_common: test_common.c $(LIB_DIR)common.c
- $(CC) $(Cflags) $(INC) $(LIB) test_common.c -o test_common
-
-test_fasta: test_fasta.c $(LIB_DIR)fasta.c
- $(CC) $(Cflags) $(INC) $(LIB) test_fasta.c -o test_fasta
-
-test_filesys: test_filesys.c $(LIB_DIR)filesys.c
- $(CC) $(Cflags) $(INC) $(LIB) test_filesys.c -o test_filesys
-
-test_hash: test_hash.c $(LIB_DIR)hash.c
- $(CC) $(Cflags) $(INC) $(LIB) test_hash.c -o test_hash
-
-test_list: test_list.c $(LIB_DIR)list.c
- $(CC) $(Cflags) $(INC) $(LIB) test_list.c -o test_list
-
-test_mem: test_mem.c $(LIB_DIR)mem.c
- $(CC) $(Cflags) $(INC) $(LIB) test_mem.c -o test_mem
-
-test_ucsc: test_ucsc.c $(LIB_DIR)ucsc.c
- $(CC) $(Cflags) $(INC) $(LIB) test_ucsc.c -o test_ucsc
-
-test_seq: test_seq.c $(LIB_DIR)seq.c
- $(CC) $(Cflags) $(INC) $(LIB) test_seq.c -o test_seq
+test: test_common
-test_strings: test_strings.c $(LIB_DIR)strings.c
- $(CC) $(Cflags) $(INC) $(LIB) test_strings.c -o test_strings
+test_common: test_common.c
+ $(CC) $(CFLAGS) $(INC) $(LIB) test_common.c -o test_common
clean:
- rm test_bits
rm test_common
- rm test_fasta
- rm test_filesys
- rm test_hash
- rm test_list
- rm test_mem
- rm test_ucsc
- rm test_seq
- rm test_strings