File: Make.lib

package info (click to toggle)
grace6 5.99.1%2Bdev4-5.1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 10,508 kB
  • ctags: 13,269
  • sloc: ansic: 103,384; sh: 5,026; yacc: 617; makefile: 577; lex: 253; fortran: 56
file content (50 lines) | stat: -rw-r--r-- 843 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
###############################################
# Universal Makefile stub for Grace libraries #
###############################################

include $(TOP)/Make.conf

.SUFFIXES : .c $(O)

all : library

include Make.defs

CFLAGS=$(CFLAGS0) -I$(TOP)/include $(CPPFLAGS) $(EXTRAFLAGS)

library : $(LIB)

$(OBJS) : $(TOP)/include/config.h
include Make.dep

Make.dep : $(SRCS)
	@echo -n "Generating dependencies... "
	@echo "# Generated automatically by \`make depend'" > Make.dep
	@$(CC) $(CFLAGS) -MM $(SRCS) | sed 's/\.o:/\$$(O)\ :/g' >> Make.dep
	@echo "done"

$(LIB) : $(OBJS)
	$(AR) cr $(LIB) $(OBJS)
	$(RANLIB) $(LIB)

install : $(LIB)

tests : dummy

links : dummy

clean :
	$(RM) $(LIB) $(OBJS)

distclean : clean
	$(RM) $(GSRCS) *.orig

devclean : distclean
	$(RM) Make.dep

depend : Make.dep

tags : $(SRCS)
	ctags $(SRCS)

dummy :