Makefile - sam - An updated version of the sam text editor.
 (HTM) git clone git://vernunftzentrum.de/sam.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       Makefile (1058B)
       ---
            1 #        Copyright (c) 1998 Lucent Technologies - All rights reserved.
            2 #
            3 #        Prototype Makefile for libXg
            4 #
            5 include ../config.mk
            6 
            7 #        add -Iincludedir for any include directories that need to be searched
            8 INCS=-I../include
            9 
           10 #        set this if your X libraries are in different locations
           11 #        or if you need extra libraries to load with X11 applications
           12 XLIBS=-lXt -lXi
           13 
           14 #        add name of library orderer - use ":" if none
           15 RANLIB=:
           16 
           17 #        add name of librarian
           18 AR=ar
           19 
           20 #        the name of the library
           21 LIB=libXg.a
           22 
           23 CFLAGS+=$(STANDARDS) $(INCS) $(INCLUDES)
           24 CC?=c99
           25 
           26 OBJS=          arith.o balloc.o bitblt.o   border.o bscreenrect.o\
           27           clipr.o   cursorset.o cursorswitch.o\
           28             gcs.o getrect.o gwin.o ldconvert.o\
           29         menuhit.o    \
           30         rectclip.o rune.o  string.o texture.o\
           31         wrbitmap.o   xtbinit.o
           32 
           33 all install:        $(LIB)
           34 uninstall:
           35 compile:        $(LIB)
           36 test:        $(LIB) test.o
           37         $(CC) -o $@ $? $(LIB) $(XLIBS) -lm $(LDFLAGS)
           38         echo try running test
           39 clean:
           40         rm -f *.o test *.a
           41 
           42 nuke:        clean
           43         rm -f $(LIB)
           44 
           45 $(LIB):        $(OBJS)
           46         $(AR) rv $(LIB) $(OBJS)
           47         $(RANLIB) $(LIB)
           48 
           49 $(LIB)(%.o): %.o
           50 
           51 $(OBJS):        ../include/libg.h libgint.h