Inserting VZGOT development tree within GIT
[safe/jmp/vzgot] / lib / Makefile.inc
1 #--------------------------------------------------------------------
2 #to compile vzgot opensrc library
3 #--------------------------------------------------------------------
4 debug   :
5           @ $(MAKE)                                             \
6                 OPTIME="-g"                                     \
7                 DEBUG="-DDEBUG"                                 \
8                 YVERB="-v"                                      \
9                 memlib
10
11 prod    :
12           @ $(MAKE)                                             \
13                 OPTIME="-g3"                                    \
14                 memlib
15
16 memlib  :
17           @ $(MAKE) $(VZLB)
18
19 clean   :
20            @ - rm -f $(VZLB) $(OBJS)
21            @ - rm -f *~
22
23 #--------------------------------------------------------------------
24 #Object file list to generate
25 OBJS=                                                           \
26         unicnt.o unilck.o                                       \
27         subapl.o subprc.o                                       \
28         utlvec.o utlprc.o                                       \
29         dbgmem.o
30
31 VZLB=                                                           \
32        vzlb.a
33 #--------------------------------------------------------------------
34 #dependancies
35 vzlb.a  :  $(OBJS)
36            ar -cr vzlb.a $(OBJS)
37 #--------------------------------------------------------------------
38 #'C' Definition
39
40 unicnt.o:                                                       \
41           lowtyp.h                                              \
42           dbgmem.h                                              \
43           subapl.h                                              \
44           unicnt.h unicnt.c
45
46 uniclk.o:                                                       \
47           lowtyp.h                                              \
48           dbgmem.h                                              \
49           subapl.h                                              \
50           unilck.h unilck.c
51
52 subprc.o:                                                       \
53           lowtyp.h                                              \
54           dbgmem.h                                              \
55           utlvec.h                                              \
56           subprc.h subprc.c
57
58 subapl.o:                                                       \
59           lowtyp.h                                              \
60           dbgmem.h                                              \
61           utlprc.h                                              \
62           subapl.h subapl.c
63
64 utlprc.o:                                                       \
65           lowtyp.h                                              \
66           dbgmem.h                                              \
67           utlprc.h utlprc.c
68
69 utlvec.o:                                                       \
70           lowtyp.h                                              \
71           dbgmem.h                                              \
72           utlvec.h utlvec.c
73
74 dbgmem.o:                                                       \
75           dbgmem.h dbgmem.c
76
77 #--------------------------------------------------------------------
78 #compiler options
79 YFLAGS= -p $* $(YVERB)
80 CC=gcc $(OPTIME) $(DEBUG) $(POSTGRESQL) $(MYSQL)
81 CFLAGS=-I .                                                     \
82         -DUCD_COMPATIBLE -std=gnu99 -pedantic -D_GNU_SOURCE     \
83         -Wall -Wshadow -DDIST_$(DIST)
84 #--------------------------------------------------------------------