Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / pcc / dist / pcc-libs / csu / darwin / Makefile
blobc5e2fa21b0f9bbf5dc032bccf40989b649e0c868
1 MACH ?= powerpc
2 TARGET ?= $(MACH)-darwin
3 VERSION ?= 0.9.9
4 PCCLIBDIR ?= /usr/local/lib/pcc/$(TARGET)/$(VERSION)/lib
5 SRCDIR ?= .
7 CFLAGS = -I$(SRCDIR)$(MACH) -I$(SRCDIR) -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
9 OBJS = crt0.o crt1.o gcrt1.o dylib1.o
11 all: $(OBJS)
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 $@ $<
25 install:
26 mkdir -p ${DESTDIR}$(PCCLIBDIR)
27 cp $(OBJS) ${DESTDIR}$(PCCLIBDIR)
29 clean:
30 rm -f $(OBJS)