File: Makefile

package info (click to toggle)
picasm 1.6-0.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 200 kB
  • ctags: 365
  • sloc: ansic: 3,628; asm: 150; makefile: 70
file content (40 lines) | stat: -rw-r--r-- 992 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
#
# Makefile for picasm (Unix)
#

VERSION="106"
ARCHIVEFILES=LICENSE makefile.wat picasm.doc Makefile expr.c pic12bit.c \
	picasm.h config.c makefile.sas pic14bit.c symtab.c devices.c \
	makefile.w32 makefile.vc picasm.c token.c \
	examples/example.asm examples/morse.asm examples/morse.h \
	examples/pic16c84.h examples/picmac.h

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

CC = gcc
CFLAGS = -Wall -O
RM = /bin/rm -f

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

clean:
	$(RM) $(OBJS) picasm *~

archive: picasm$(VERSION).tar.gz picasm$(VERSION).zip

picasm$(VERSION).tar.gz: $(ARCHIVEFILES)
	tar czf picasm$(VERSION).tar.gz $(ARCHIVEFILES)

picasm$(VERSION).zip: $(ARCHIVEFILES)
	zip picasm$(VERSION).zip $(ARCHIVEFILES)

picasm.o: picasm.c picasm.h
devices.o: devices.c picasm.h
config.o: config.c picasm.h
token.o: token.c picasm.h
symtab.o: symtab.c picasm.h
expr.o: expr.c picasm.h
pic12bit.o: pic12bit.c picasm.h
pic14bit.o: pic14bit.c picasm.h