File: Makefile

package info (click to toggle)
picasm 1.14-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 528 kB
  • ctags: 378
  • sloc: ansic: 4,481; asm: 150; makefile: 72
file content (47 lines) | stat: -rw-r--r-- 1,206 bytes parent folder | download | duplicates (2)
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
#
# Makefile for picasm (Unix)
#
# Copyright 1995-2004 Timo Rossi, <trossi@iki.fi>
# See the file LICENSE for license terms.
#

DEFS=-DBUILTIN_INCLUDE1=\"/usr/local/share/picasm/include\"
#DEFS=-DBUILTIN_INCLUDE1=\"/home/trossi/bin/picasm-include\"

CC = gcc
CFLAGS = -Wall -Wshadow -W -Werror -O2 $(DEFS)
RM = /bin/rm -f

VERSION=114

OBJS = picasm.o config.o token.o symtab.o expr.o \
       pic12bit.o pic14bit.o pic16bit.o \
       util.o

picasm: $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o $@

clean:
	$(RM) picasm *.o examples/*.hex examples/*.lst

archive: clean
	DIRNAME=`basename $$PWD` && \
	cd .. && \
	tar cjf picasm$(VERSION).tar.bz2 $$DIRNAME

devices.c: devices.txt devices.perl
	perl -w devices.perl devices.txt >devices.c

picasm.txt: picasm.html
	lynx -dump picasm.html >picasm.txt

#-------------------------
config.o: config.c picasm.h token.h
expr.o: expr.c picasm.h token.h symtab.h
pic12bit.o: pic12bit.c picasm.h token.h symtab.h
pic14bit.o: pic14bit.c picasm.h token.h symtab.h
pic16bit.o: pic16bit.c picasm.h token.h symtab.h
picasm.o: picasm.c picasm.h token.h symtab.h util.h
symtab.o: symtab.c picasm.h symtab.h
token.o: token.c picasm.h token.h symtab.h util.h
util.o: util.c util.h