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

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