File: Makefile

package info (click to toggle)
crasm 1.8-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 376 kB
  • sloc: ansic: 3,505; makefile: 65
file content (26 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (4)
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
SHELL   =/bin/sh
CFLAGS  = -O
LDFLAGS	= 
LIBS    = -lm
RM	= rm

OBJ     =   crasm.o stdvocabulary.o pseudos.o macro.o label.o \
            parse.o filter.o operator.o output.o xref.o scode.o

CPU     =   cpulist.o cpu6800.o cpu6502.o cpuz80.o

all: crasm

crasm: $(OBJ) $(CPU)
	${CC} ${CFLAGS} ${LDFLAGS} -o crasm $(OBJ) $(CPU) ${LIBS}
	@echo "done"

clean: FORCE
	-${RM} 2>/dev/null *.o crasm

FORCE:

.PHONY: FORCE

$(OBJ):	dcl.h label.h
$(CPU):	cpu.h