Changeset 912

Show
Ignore:
Timestamp:
11/20/07 21:59:50 (2 years ago)
Author:
vasi
Message:

update for leopard

Location:
dyld/testcase
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dyld/testcase/Makefile

    r568 r912  
    1 LDFLAGS = -multiply_defined suppress 
     1COMPILE = $(CC) -o $@ $^ 
     2DYLIB = $(COMPILE) -dynamiclib 
    23 
    34all: intercept-flat 
    45 
    5 libtext.dylib: text-display.c text-format.c 
    6         $(CC) $(LDFLAGS) -dynamiclib -o $@ $^ 
     6libtextformat.dylib: text-format.c 
     7libtext.dylib: text-display.c libtextformat.dylib 
     8libdisk.dylib: disk.c 
     9libintercept.dylib: intercept.c 
    710 
    8 libdisk.dylib: disk.c 
    9         $(CC) $(LDFLAGS) -dynamiclib -o $@ $^ 
    10  
    11 libintercept.dylib: intercept.c 
    12         $(CC) $(LDFLAGS) -dynamiclib -o $@ $^ 
     11lib%.dylib: 
     12        $(DYLIB) 
    1313 
    1414main: main.c libdisk.dylib libtext.dylib 
    15         $(CC) $(LDFLAGS) -o main $^ 
    16  
     15        $(COMPILE) 
    1716 
    1817clean: 
  • dyld/testcase/intercept.c

    r568 r912  
    11#include <stdio.h> 
     2#include <fcntl.h> 
    23 
    3 int open(char *s, int f, int m) { 
     4int open(const char *s, int f, ...) { 
    45        printf("Intercepting open: %s\n", s); 
    56}