/
Makefile
50 lines (40 loc) · 1.55 KB
/
Makefile
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
# =============================================================================
# R O L I B
# Remote Operations Library
# -----------------------------------------------------------------------------
# Datei : Makefile
# Version : 1.6
# Datum : 96/05/09 14:57:24
#
# Autor : Destailleur, Lubitz
# -----------------------------------------------------------------------------
# (c) CR by Herlitz AG
# =============================================================================
GCC=/usr/local/bin/gcc
INCLLIB=-I/usr/sap/HZE/rfc/rfcsdk/include -I.
LIBS=-L/usr/sap/HZE/rfc/rfcsdk/lib -L. -lrfc -lsocket -lnsl -ldl
CFLAGS=-g
INSTALLBASE=/usr/local/rolib/
INSTALLBIN=bin
INSTALLLIB=lib
INSTALLINCLUDE=include
INSTALL=/usr/ucb/install
#all: dirserv roping roping_nw roecho roshut librolib.a
all: librolib.a cleanup
rolib.o: rolib.h system.h
$(GCC) $(CFLAGS) -c -o $(@F) rolib.c
messages.o: rolib.h messages.h system.h
$(GCC) $(CFLAGS) -c -o $(@F) messages.c
librolib.a: rolib.o messages.o
ar -rc librolib.a rolib.o messages.o
$(RANLIB) librolib.a
#
# Programm(e) installieren
#
install:
$(INSTALL) -g root -m 755 -o root dirserv dirserv.run roping roecho $(INSTALLBASE)$(INSTALLBIN)
$(INSTALL) -g root -m 755 -o root rolib.h messages.h system.h $(INSTALLBASE)$(INSTALLINCLUDE)
$(INSTALL) -g root -m 755 -o root librolib.a $(INSTALLBASE)$(INSTALLLIB)
cleanup:
rm -f *.o *.err
# ------------------------------- EOF -------------------------------------