File: makefile.w32

package info (click to toggle)
picasm 1.5-2.1
  • links: PTS
  • area: non-free
  • in suites: hamm, slink
  • size: 168 kB
  • ctags: 342
  • sloc: ansic: 3,440; asm: 150; makefile: 33
file content (41 lines) | stat: -rw-r--r-- 903 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
#
# Makefile for picasm (Watcom C 10.6, Windows 95/NT 32-bit)
#
CC=wcc386
CFLAGS=-bt=nt -zq -wx
LINK=wlink
RM=del
NAME=picasm
LNK=picasm.lnk

OBJS = picasm.obj devices.obj config.obj token.obj symtab.obj expr.obj
OBJS += pic12bit.obj pic14bit.obj

$(NAME).exe: $(OBJS) $(LNK)
        $(LINK) @$(LNK)

$(LNK): makefile
       %create $(LNK)
       @%append $(LNK) name $(NAME)
       @%append $(LNK) op map,quiet
       @%append $(LNK) system nt
       @for %i in ($(OBJS)) do @%append $(LNK) file %i

clean:  .symbolic
        -$(RM) *.obj
        -$(RM) $(NAME).exe
        -$(RM) $(NAME).map
        -$(RM) $(NAME).lnk

.c.obj :
	$(CC) $(CFLAGS) $[*

#----
picasm.obj: picasm.c picasm.h
devices.obj: devices.c picasm.h
config.obj: config.c picasm.h
token.obj: token.c picasm.h
symtab.obj: symtab.c picasm.h
expr.obj: expr.c picasm.h
pic12bit.obj: pic12bit.c picasm.h
pic14bit.obj: pic14bit.c picasm.h