File: Makefile

package info (click to toggle)
gridengine 8.1.9%2Bdfsg-13.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 57,140 kB
  • sloc: ansic: 432,689; java: 87,068; cpp: 31,958; sh: 29,445; jsp: 7,757; perl: 6,336; xml: 5,828; makefile: 4,704; csh: 3,934; ruby: 2,221; tcl: 1,676; lisp: 669; yacc: 519; python: 503; lex: 361; javascript: 200
file content (48 lines) | stat: -rw-r--r-- 1,608 bytes parent folder | download | duplicates (6)
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
#Portions of this code are Copyright 2011 Univa Inc.
IJSLIB_DIR = $(SDIR)/libs/ijs

IJSLIB_SRC =   \
               sge_ijs_lib.c

IJSLIB_OBJS = $(IJSLIB_SRC:.c=.o)

IJSLIB =libijs.a

###############################################################################
# global rules: all, clean, depend, messages
###############################################################################

ijslib: $(IJSLIB)

ijslib_clean:
		$(RM) $(IJSLIB_OBJS) libijs.a

ijslib_depend:
		$(DEPEND) -f$(IJSLIB_DIR)/ijs_dependencies $(IJSLIB_DIR)/*.c

ijslib_messages:
	@echo Creating $@
	@for i in `ls $(IJSLIB_DIR)/*.c`; do \
	   $(CC) $(CFLAGS) -DEXTRACT_MESSAGES -E $$i | $(XGETTEXT) - ;\
	done

###############################################################################
# rules to build library
###############################################################################
libijs.a:	$(IJSLIB_OBJS) 
	$(AR) $(ARFLAGS) libijs.a $(IJSLIB_OBJS)
	$(RANLIB) libijs.a

###############################################################################
# include dependencies for object files generated by sge_depend
###############################################################################
include $(IJSLIB_DIR)/ijs_dependencies

###############################################################################
# rules to build object codes
###############################################################################
sge_ijs_lib.o:	$(IJSLIB_DIR)/sge_ijs_lib.c
		$(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(IJSLIB_DIR)/sge_ijs_lib.c

#---------------------------------------------------------------------
# test programs