File: Makefile

package info (click to toggle)
lam 6.1-11
  • links: PTS
  • area: main
  • in suites: slink
  • size: 7,764 kB
  • ctags: 5,834
  • sloc: ansic: 55,525; makefile: 1,449; fortran: 184; sh: 39; asm: 26; csh: 12
file content (58 lines) | stat: -rw-r--r-- 843 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
##
##	Ohio Trollius
##	Copyright 1995 The Ohio State University
##
##	Function:	- libargs.a
##			- command line argument library
##

DEPTH   = ../../..

##
## global configuration
##
include $(DEPTH)/Config/config

##
## local configuration
##
VPATH	= $(DEPTH)/share/args
INCLUDE	= -I$(IDIR)
DEFS	= 
LCFLAGS = $(INCLUDE) $(DEFS)
AFLAGS	= rv

##
## modules and libraries
##
LIB	= libargs.a
SRC	= all_argv.c all_opt.c do_args.c ndi_parse.c ndi_resolve.c \
	  parse_id.c pdi_parse.c 
OBJ	= $(SRC:.c=.o)


all: $(LIB)

$(LIB): $(OBJ)
	$(RM) $(LIB)
	$(AR) $(AFLAGS) $(LIB) $(OBJ)
	$(RANLIB) $(LIB)

install: $(OLDIR)/$(LIB)

$(OLDIR)/$(LIB): $(LIB)
	$(INSTALL) $(LIB) $(OLDIR)/$(LIB)
	$(RANLIB) $(OLDIR)/$(LIB)

clean:
	$(RM) $(OBJ) $(LIB)

##
## depend:
##
include	$(DEPTH)/Config/depend

##
## automatic dependencies and rules
##
include Depends