Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / pcc / dist / pcc-libs / csu / netbsd / Makefile
blob22ec361da22b691b818fd8893ea5ad73685cc005
1 MACH ?= i386
2 TARGET ?= $(MACH)-netbsd
3 VERSION ?= 0.9.9
4 PCCLIBDIR ?= /usr/local/lib/pcc/$(TARGET)/$(VERSION)/lib
5 SRCDIR ?= .
7 CFLAGS = -I$SRCDIR/$(MACH) -I$(SRCDIR) -Wall -Wstrict-prototypes -Wmissing-prototypes
9 OBJS = crtbegin.o crtend.o
11 all: $(OBJS)
13 crtbegin.o: crtbegin.c
14 $(CC) -O $(CFLAGS) -c -o $@ $<
16 crtend.o: crtend.c
17 $(CC) -O $(CFLAGS) -c -o $@ $<
19 install:
20 mkdir -p ${DESTDIR}$(PCCLIBDIR)
21 cp $(OBJS) ${DESTDIR}$(PCCLIBDIR)
23 clean:
24 rm -f $(OBJS)