home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Collection - Online Library - January 1996
/
CKITOS2196.ISO
/
diskette
/
gg244090.dsk
/
unc.dsk
/
CHAPTER.05
/
EXPLICIT
/
MAKEFILE.AIX
< prev
next >
Wrap
Text File
|
1993-09-30
|
827b
|
45 lines
#
# Makefile for the AIX Version of Explicit Binding Example.
#
# interface name
INTFC = mathx
# command names
CC = cc_r
IDL = idl
DEL = rm -f
# command flags
CFLAGS = -I/usr/include/dce
IDLFLAGS = -no_cpp -I.
# libraries
LIBS = -ldce
# object files
SOBJS = $(INTFC)_s.o $(INTFC)_m.o $(INTFC)_sstub.o
COBJS = $(INTFC)_c.o $(INTFC)_cstub.o
# targets
all: $(INTFC)_s $(INTFC)_c
$(INTFC)_s: $(SOBJS)
$(CC) $(SOBJS) -o $(INTFC)_s $(LIBS)
$(INTFC)_c: $(COBJS)
$(CC) $(COBJS) -o $(INTFC)_c $(LIBS)
$(INTFC).h $(INTFC)_sstub.o $(INTFC)_cstub.o: $(INTFC).idl $(INTFC).acf
$(IDL) $(IDLFLAGS) $(INTFC).idl
clean:
-$(DEL) core *.o $(INTFC)_?stub.c $(INTFC).h
# dependencies
$(INTFC)_m.o: $(INTFC)_m.c $(INTFC).h
$(INTFC)_s.o: $(INTFC)_s.c $(INTFC).h
$(INTFC)_c.o: $(INTFC)_c.c $(INTFC).h