File: Imakefile.lib

package info (click to toggle)
calctool 2.4.9-10
  • links: PTS
  • area: non-free
  • in suites: hamm, slink
  • size: 432 kB
  • ctags: 1,165
  • sloc: ansic: 5,130; makefile: 613; sh: 22
file content (73 lines) | stat: -rw-r--r-- 2,007 bytes parent folder | download
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
#
#  Imakefile for the calctool lib directory.
#
#  @(#)Imakefile.lib 1.1 90/03/01
#
#  Provided by Didier Poirot, Chorus Systemes  (dp@chorus.fr).
#
#  Note that to use this Imakefile, the current calctool directory
#  layout needs to be rearranged as follows:
#
#  Files in the main directory:
#
#  Imakefile.main, renamed to Imakefile.
#
#  calctool.1              mathlib.c            Imakefile
#  calctool.c              mathlib.h            Makefile
#  calctool.color.icon     calctool.help        patchlevel.h
#  calctool.icon           x11.c                README                  
#  TODO                    help.cursor
#
#  Files in a new sub-directory called lib:
#
#  Imakefile.lib (this file), renamed to Imakefile.
#
#  Imakefile       color.h         functions.c     graphics.c
#  Makefile        display.c       get.c           calctool.h 
#  extern.h 
# 
#  Permission is given to distribute these sources, as long as the 
#  copyright messages are not removed, and no monies are exchanged. 
# 
#  No responsibility is taken for any errors inherent either in the comments
#  or the code of this program, but if reported to me then an attempt will
#  be made to fix them.

#include <Library.tmpl>

SOCALCTOOLREV = SharedCalctoolRev

        LIBNAME = ./lib/libCalctool.a
        CALCLIB = $(LIBNAME)
       INCLUDES = -I.. -I$(TOP)
    CDEBUGFLAGS = -O3
	DEFINES = -DHELPFILE=\"/usr/lib/X11/calctool.help\" 
   INSTALLFLAGS = $(INSTINCFLAGS)
     LINTLIBDIR = ./lib
      USRLIBDIR = ./lib

HEADERS = calctool.h color.h extern.h

SRCS =  graphics.c display.c functions.c get.c

OBJS =  graphics.o display.o functions.o get.o

all::

NormalLibraryObjectRule()

NormalLibraryTarget(Calctool,$(OBJS))
LintLibraryTarget(Calctool,$(SRCS))
InstallLibrary(Calctool,$(USRLIBDIR))
InstallLintLibrary(Calctool,$(LINTLIBDIR))

BuildIncludes($(HEADERS),Calctool,..)

MakeDirectories(install,$(INCDIR)/Calctool)

InstallMultiple($(HEADERS),$(INCDIR)/Calctool)

DependTarget()

NormalLintTarget($(SRCS))