File: Makefile.in

package info (click to toggle)
gpasm 0.0.7-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 536 kB
  • ctags: 310
  • sloc: ansic: 2,011; perl: 1,330; yacc: 368; lex: 331; sh: 152; makefile: 34
file content (64 lines) | stat: -rw-r--r-- 1,638 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Makefile.in - input to 'configure'
# Copyright (C) 1998 James Bowman
# 
# This file is part of gpasm.
# 
# gpasm is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# 
# gpasm is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with gpasm; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.  */

all: gpasm

DATADIR = @prefix@/gpasm
CFLAGS = @CFLAGS@ -D DATADIR=\"$(DATADIR)\"	# -g --pedantic -Wall
SHELL = /bin/sh

# All the objects, in alphabetical order
OBJECTS= \
	gpasm.tab.o	\
	gperror.o	\
	hex.o		\
	lst.o		\
	main.o		\
	opcode.o	\
	processor.o	\
	scan.o		\
	symbol.o	\
	util.o 

gpasm: $(OBJECTS)
	$(CC) -o gpasm $(OBJECTS) @LIBS@

gpasm.tab.c gpasm.tab.h: gpasm.y
	@YACC@ -d gpasm.y
	mv y.tab.c gpasm.tab.c
	mv y.tab.h gpasm.tab.h

scan.c: scan.l gpasm.tab.h
	@LEX@ scan.l
	mv lex.yy.c scan.c

########################################################################

install:
	@INSTALL@ -m 755 gpasm @prefix@/bin
	@INSTALL@ -m 644 special.inc $(DATADIR)/special.inc

########################################################################

clean:
	rm -f $(OBJECTS)
	rm -f scan.c gpasm.tab.[ch]
	rm -f *.hex *.lst
	rm -f core