File: Makefile_loadable_ibm6000

package info (click to toggle)
dxsamples 4.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 26,340 kB
  • sloc: ansic: 10,079; sh: 8,445; java: 1,772; makefile: 1,102
file content (27 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (5)
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
# This makefile has three targets:
#    loadablelib creates a "library" of two run-time loadable modules,
#       makex and add 
#    hello creates a single runtime loadable executable, the hello module.
#    all creates both of the above.
BASE=/usr/lpp/dx

INC = $(BASE)/include
EXP = $(BASE)/lib_ibm6000/dxexec.exp
BIN = $(BASE)/bin

CFLAGS = -O -Dibm6000 -I$(BASE)/include

.DEFAULT: 	all

loadablelib: 	makex.o add.o
		$(BIN)/mdf2c -m user_loadable.mdf > user.c
		cc -I$(INC) -D$(ARCH) -c user.c
		cc -o loadablelib user.o makex.o add.o -e DXEntry -bI:$(EXP)

hello: 		hello.o
		$(BIN)/mdf2c -m hello_loadable.mdf > user.c
		cc -I$(INC) -D$(ARCH) -c user.c
		cc -o hello user.o hello.o -e DXEntry -bI:$(EXP)

all:      	hello loadablelib