File: Makefile.in

package info (click to toggle)
loki 2.4.7.4-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,156 kB
  • sloc: ansic: 38,653; yacc: 4,974; lex: 946; makefile: 333; sh: 100
file content (91 lines) | stat: -rw-r--r-- 2,337 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
SHELL = /bin/sh

LEX = @LEX@ -I
YACC = @YACC@
YFLAGS = -d
CC = @CC@
MY_CFLAGS = @CFLAGS@ @extra_cflags@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
CP = @CP@
MV = @MV@
RANLIB = @RANLIB@
AR = @AR@
CHMOD = @CHMOD@
COMPRESS = \"@COMPRESS@\"

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
INSTALL_PERM = 755

#MONITOR_SRC = loki_monitor.c count_dbr.c
#MONITOR_FLAGS = -DUSE_MONITOR
#DMALLOC_INC = @DMALLOC_INC@
#DMALLOC_LIB = @DMALLOC_LIB@
#DMALLOC_FLAGS = @DMALLOC_FLAGS@

INCLUDES = -I../include
CFLAGS += $(MY_CFLAGS) $(INCLUDES) $(DMALLOC_FLAGS) $(MONITOR_FLAGS)
ALL_LIBS = $(DMALLOC_LIB) -L. -L../libsrc -lloki -lgen $(LIBS)

LKLIB_SRC = param_parse.c param_lex.c read_binfiles.c loki_utils.c kinship.c \
genedrop.c mat_utils.c output_recomb.c seg_pen.c gen_pen.c loki_ibd.c \
get_founders.c pass_founder_genes.c

LOKI_SRC = loki.c loki_peel.c loki_init.c alloc_loki.c \
loki_sample.c loki_pen.c loki_tlmoves.c meiosis_scan.c \
loki_identity.c sample_rand.c sample_effects.c loki_setup.c \
loki_dump.c sample_cens.c handle_res.c print_data.c calc_var_locus.c \
loki_output.c sample_nu.c loki_complex_peel.c loki_npl.c \
loki_simple_sample.c loki_simple_peel.c loki_trait_simple_peel.c \
loki_trait_simple_sample.c get_par_probs.c read_solar_idfile.c \
peel_to_par.c update_segs.c $(MONITOR_SRC)

LKLIB_OBJ = ${LKLIB_SRC:.c=.o}
LOKI_OBJ = ${LOKI_SRC:.c=.o}

PROGS = loki

all: $(PROGS)

.y.c:
	$(YACC) $(YFLAGS) $<
	$(MV) $(MVFLAGS) y.tab.c $@
	$(MV) $(MVFLAGS) y.tab.h ${@:.c=.h}

param_parse.h: param_parse.c

param_lex.o: param_lex.c
	$(CC) -c $(CFLAGS) -DYY_NO_UNPUT $<

loki_ibd.o: loki_ibd.c
	$(CC) -c $(CFLAGS) -DIBD_COMPRESS_PROG=$(COMPRESS) $<

libloki.a: $(LKLIB_OBJ) ../include/config.h
	$(AR) cr $@ $(LKLIB_OBJ)
	$(RANLIB) $@

loki: libloki.a $(LOKI_OBJ) ../libsrc/libgen.a ../include/config.h
	$(CC) $(CFLAGS) -o $@ $(LOKI_OBJ) $(LDFLAGS) $(ALL_LIBS)

../bin:
	mkdir ../bin

install: $(PROGS) ../bin
	for file in $(PROGS); do \
	$(CP) $$file $(bindir)/; \
	$(CHMOD) $(INSTALL_PERM) $(bindir)/$$file ; \
	done

clean: 
	rm -f *~ *.o *.a *.bak a.out core seedfile depend

distclean: clean
	rm -f $(PROGS) Makefile

depend: $(LOKI_SRC) $(LKLIB_SRC) $(MONITOR_SRC)
	@MAKEDEPEND@ $(INCLUDES) $(DMALLOC_FLAGS) $(LOKI_SRC) $(LKLIB_SRC) $(MONITOR_SRC)
	touch depend
	
# DO NOT DELETE THIS LINE -- make depend depends on it.