# Copyright (c) 1992 AT&T - All rights reserved. # # Prototype Aix Makefile for libXg # Courtesy of Dan McDonald # # Define operating system type: -DAIX # # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified # if your compiler supports posix-compatible compilation OS=-DAIX -D_POSIX_SOURCE -D_ANSI_C_SOURCE # add -Iincludedir for any include directories that need to be searched INCS=-I../include # set this if your X libraries are in different locations # or if you need extra libraries to load with X11 applications XLIBS=/usr/local/X11R5/lib/libXt.a /usr/local/X11R5/lib/libX11.a # add name of library orderer - use ":" if none RANLIB=: # add name of librarian AR=ar # the name of the library LIB=libXg.a CFLAGS=$(OS) -D_LIBXG_EXTENSION $(INCS) ### AIX NOTE: Normally, the way to invoke the RS/6000 C compiler for ANSI ### C is to use "xlc". The X include files here seem to not like ### ANSI, so "cc" is used here, which compiles "EXTENDED" level ### C. (Kinda like gcc's default mode.) CC=cc OBJS= arc.o arith.o balloc.o bitblt.o bitbltclip.o border.o bscreenrect.o\ circle.o clipline.o clipr.o copymasked.o cursorset.o cursorswitch.o\ disc.o ellipse.o font.o gcs.o getrect.o gwin.o ldconvert.o latin1.o\ mkfont.o menuhit.o point.o polysegment.o rdbitmap.o rdbitmapfile.o\ rdfontfile.o rectclip.o rune.o segment.o string.o strwidth.o texture.o\ wrbitmap.o wrbitmapfile.o xtbinit.o all install: $(LIB) compile: $(LIB) test: test.o $(CC) -o $@ $? $(LIB) $(XLIBS) -lm echo try running test clean: rm -f *.o test nuke: clean rm -f $(LIB) $(LIB): $(OBJS) $(AR) rv $(LIB) $(OBJS) $(RANLIB) $(LIB) $(LIB)(%.o): %.o $(OBJS): ../include/libg.h libgint.h ../include/libc.h