File:  [Apple XNU] / GNUtools / c++filt / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:45:55 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, GNUtools33
GNU tools for NeXTSTEP 3.3

PROG_NAME = c++filt

CC = cc
NM = nm

HFILES = ansidecl.h demangle.h getopt.h

CFILES = cplus-dem.c getopt.c getopt1.c version.c underscore.c


install: build
	for h in $(RC_ARCHS); do \
	  syms="$$syms $(SYMROOT)/$$h/bin/c++filt"; \
	done; \
	mkdirs $(DSTROOT)/bin; \
	lipo -create -output $(DSTROOT)/bin/c++filt $$syms
	strip $(DSTROOT)/bin/c++filt
	chmod 755 $(DSTROOT)/bin/c++filt

build: $(HFILES) 
	for h in $(RC_ARCHS); do \
	    echo "== building c++filt for $$h"; \
	    mkdirs $(SYMROOT)/$$h/bin; \
	    $(CC) -arch $$h -DMAIN -I$(SRCROOT)/c++filt \
		  $(CFILES) -o $(SYMROOT)/$$h/bin/$(PROG_NAME); \
	done

clean:
	rm -f *.o c++filt

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.