2 TARGET ?
= $(MACH
)-darwin
4 PCCLIBDIR ?
= /usr
/local
/lib
/pcc
/$(TARGET
)/$(VERSION
)/lib
7 CFLAGS
= -I
$(SRCDIR
)$(MACH
) -I
$(SRCDIR
) -Wall
-Werror
-Wstrict-prototypes
-Wmissing-prototypes
9 OBJS
= crt0.o crt1.o gcrt1.o dylib1.o
13 crt0.o
: $(MACH
)/crt0.c
14 $(CC
) -r
-static
-nostdlib
-Wl
,-keep_private_externs
-Wl
,-weak_reference_mismatches
,non-weak
-DCRT
-O
$(CFLAGS
) -o
$@
$<
16 crt1.o
: $(MACH
)/crt0.c
17 $(CC
) -r
-nostdlib
-Wl
,-keep_private_externs
-Wl
,-weak_reference_mismatches
,non-weak
-DCRT
-DDYNAMIC
-O
$(CFLAGS
) -o
$@
$< /usr
/lib
/dyld
19 gcrt1.o
: $(MACH
)/crt0.c
20 $(CC
) -r
-nostdlib
-Wl
,-keep_private_externs
-Wl
,-weak_reference_mismatches
,non-weak
-DCRT
-DDYNAMIC
-DPROFILE
-O
$(CFLAGS
) -o
$@
$< /usr
/lib
/dyld
22 dylib1.o
: $(MACH
)/dylib1.c
23 $(CC
) -r
-nostdlib
-Wl
,-keep_private_externs
-Wl
,-weak_reference_mismatches
,non-weak
-DDYNAMIC
-O
$(CFLAGS
) -o
$@
$<
26 mkdir
-p
${DESTDIR}$(PCCLIBDIR
)
27 cp
$(OBJS
) ${DESTDIR}$(PCCLIBDIR
)