Print this page
Code review comments from jeffpc


  29         secflags_zonecfg
  30 
  31 PROG += addrs-32 addrs-64 stacky
  32 
  33 ROOTOPTPKG = $(ROOT)/opt/os-tests
  34 TESTDIR = $(ROOTOPTPKG)/tests/secflags
  35 
  36 CMDS = $(PROG:%=$(TESTDIR)/%)
  37 $(CMDS) := FILEMODE = 0555
  38 
  39 addrs-32: addrs.c
  40         $(LINK.c) addrs.c -o $@ $(LDLIBS)
  41         $(POST_PROCESS)
  42 
  43 addrs-64: addrs.c
  44         $(LINK64.c) addrs.c -o $@ $(LDLIBS)
  45         $(POST_PROCESS)
  46 
  47 stacky := MAPFILE.NES=                  # Will foil the test, clearly
  48 stacky: stacky.o
  49         $(LINK.c) -m32 stacky.o -o $@ $(LDLIBS)
  50         $(POST_PROCESS)
  51 
  52 secflags_syscall: secflags_syscall.c
  53         $(LINK.c) -m32 secflags_syscall.c -o $@ $(LDLIBS)
  54         $(POST_PROCESS)
  55 
  56 all: $(PROG)
  57 
  58 install: all $(CMDS)
  59 
  60 lint: 
  61 
  62 clobber: clean
  63         -$(RM) $(PROG)
  64 
  65 clean:
  66 
  67 $(CMDS): $(TESTDIR) $(PROG)
  68 
  69 $(TESTDIR):
  70         $(INS.dir)
  71 
  72 $(TESTDIR)/%: %
  73         $(INS.file)


  29         secflags_zonecfg
  30 
  31 PROG += addrs-32 addrs-64 stacky
  32 
  33 ROOTOPTPKG = $(ROOT)/opt/os-tests
  34 TESTDIR = $(ROOTOPTPKG)/tests/secflags
  35 
  36 CMDS = $(PROG:%=$(TESTDIR)/%)
  37 $(CMDS) := FILEMODE = 0555
  38 
  39 addrs-32: addrs.c
  40         $(LINK.c) addrs.c -o $@ $(LDLIBS)
  41         $(POST_PROCESS)
  42 
  43 addrs-64: addrs.c
  44         $(LINK64.c) addrs.c -o $@ $(LDLIBS)
  45         $(POST_PROCESS)
  46 
  47 stacky := MAPFILE.NES=                  # Will foil the test, clearly
  48 stacky: stacky.o
  49         $(LINK.c) stacky.o -o $@ $(LDLIBS)
  50         $(POST_PROCESS)
  51 
  52 secflags_syscall: secflags_syscall.c
  53         $(LINK.c) secflags_syscall.c -o $@ $(LDLIBS)
  54         $(POST_PROCESS)
  55 
  56 all: $(PROG)
  57 
  58 install: all $(CMDS)
  59 
  60 lint: 
  61 
  62 clobber: clean
  63         -$(RM) $(PROG)
  64 
  65 clean:
  66 
  67 $(CMDS): $(TESTDIR) $(PROG)
  68 
  69 $(TESTDIR):
  70         $(INS.dir)
  71 
  72 $(TESTDIR)/%: %
  73         $(INS.file)