Annotation of driverkit/Examples/userDriver/Makefile, revision 1.1.1.1

1.1       root        1: #
                      2: # Makefile for driverkit code examples.
                      3: #
                      4: CFILES=
                      5: MFILES= userDriver.m
                      6: HFILES=        userDriver.h
                      7: 
                      8: ifneq "" "$(wildcard /bin/mkdirs)"
                      9:   MKDIRS = /bin/mkdirs
                     10: else
                     11:   MKDIRS = /bin/mkdir -p
                     12: endif
                     13: 
                     14: OBJROOT= .
                     15: SYMROOT= .
                     16: VPATH= $(OBJROOT)
                     17: 
                     18: #
                     19: # use these for local build...
                     20: #
                     21: DRIVER_LIB=    $(SYMROOT)/../../libDriver/syms/libDriver_g.a
                     22: CFLAGS= -g -DDEBUG -DXPR_DEBUG $(RC_CFLAGS) -DNRW_BUILD -MD -Wall -I../..
                     23: 
                     24: #
                     25: # and these for building from installed libs and header files...
                     26: #
                     27: #DRIVER_LIB=   $(DSTROOT)/usr/local/lib/libDriver_g.a
                     28: #CFLAGS= -g -DDEBUG -DXPR_DEBUG -DNRW_BUILD -MD -Wall \
                     29: 
                     30: SOURCEFILES= Makefile $(CFILES) $(MFILES) $(HFILES)
                     31: OFILES= $(CFILES:.c=.o) $(MFILES:.m=.o)
                     32: 
                     33: TARGETS = $(OBJROOT)/userDriver
                     34: 
                     35: USER_CFLAGS= -DIOSERVER
                     36: 
                     37: all debug: $(OBJROOT) $(SYMROOT) $(TARGETS)
                     38: 
                     39: install: all
                     40: 
                     41: installhdrs install_only tags kern:
                     42:        
                     43: installsrc: $(SRCROOT)
                     44:        gnutar cf - $(SOURCEFILES) | (cd $(SRCROOT); gnutar xpf -)
                     45: 
                     46: clean:
                     47:        -rm -f *.o *.d $(TARGETS) Makedep *~
                     48: 
                     49: $(SRCROOT) $(OBJROOT) $(SYMROOT):
                     50:        $(MKDIRS) $@
                     51: 
                     52: $(OBJROOT)/userDriver: userDriver.o  $(DRIVER_LIB)
                     53:        ${CC} $(CFLAGS) $(USER_CFLAGS) -o $@ [email protected] $(DRIVER_LIB)
                     54: 
                     55: .c.o:
                     56:        ${CC} ${CFLAGS} -c -o $(OBJROOT)/$@ \
                     57:                -dependency-file $(OBJROOT)/$(*F).d $(*F).c
                     58:        md -u $(OBJROOT)/Makedep -d $(OBJROOT)/$(*F).d
                     59:                
                     60: .m.o:
                     61:        ${CC} ${CFLAGS} -c -o $(OBJROOT)/$@ \
                     62:                -dependency-file $(OBJROOT)/$(*F).d $(*F).m
                     63:        md -u $(OBJROOT)/Makedep -d $(OBJROOT)/$(*F).d
                     64:                
                     65: -include $(OBJROOT)/Makedep

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.