File: Makefile.am

package info (click to toggle)
faucc 20160511-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,460 kB
  • ctags: 2,914
  • sloc: ansic: 38,788; yacc: 1,602; xml: 519; sh: 436; lex: 378; makefile: 125
file content (25 lines) | stat: -rw-r--r-- 705 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# $Id: Makefile.am,v 1.3 2009/01/13 16:51:22 vrsieh Exp $
#
# Copyright (C) 2008-2009 FAUcc Team.org>.
# This program is free software, GPL-2 (or any later version). See COPYING.
#

fauccdir = $(libdir)/faucc
faucc_LIBRARIES = libfaucc.a

libfaucc_a_SOURCES = libfaucc.c

libfaucc.a: libfaucc.c
	rm -f libfaucc.a
	for src in libfaucc.c ; do \
		for arch in i286 i386 ; do \
			file=`echo $$src | sed -e 's/\.c$$//'`; \
			echo $${file}; \
			sed -e "s/ARCH/$${arch}/g" < $${file}.c > $${file}-$${arch}.c; \
			../faucc -B.. -c -b $${arch} -o $${file}-$${arch}.o $${file}-$${arch}.c; \
			ar rcs libfaucc.a $${file}-$${arch}.o; \
			rm $${file}-$${arch}.o; \
			rm $${file}-$${arch}.c; \
		done; \
	done