xref: /386bsd/usr/src/usr.bin/gcc/Makefile.symlinks (revision a2142627)
1#	@(#)Makefile.symlinks	6.1 (Berkeley) 1/29/91
2#
3# Generate machine-dependent symlinks for GCC compiles.
4# Similar to config.gcc but (1) puts symlinks in the obj directory and
5# (2) knows that it's running on BSD.
6#
7
8tm.h config.h hconfig.h md aux-output.c:
9	case $(MACHINE) in \
10	i386)	T=386bsd.h C=xm-i386.h M=i386.md O=i386.c ;; \
11	*)	echo $(MACHINE)': unsupported GCC platform'; exit 1;; \
12	esac; \
13	D=$(.CURDIR)/../cc1/config/$(MACHINE); \
14	ln -s $$D/$$T tm.h; \
15	ln -s $$D/$$C config.h; \
16	ln -s $$D/$$C hconfig.h; \
17	ln -s $$D/$$M md; \
18	ln -s $$D/$$O aux-output.c
19
20$(OBJS): tm.h config.h md aux-output.c
21
22CLEANFILES+=	tm.h config.h hconfig.h md aux-output.c
23