source: vital-to8-sdk/dasm6809/Makefile

Last change on this file was 1, checked in by svn, 6 years ago

Import initial

File size: 697 bytes
Line 
1##########################################################################
2# targets:                                                               #
3##########################################################################
4
5
6################
7# object files #
8################
9
10OBJ_DIR =
11OBJ_DASM = $(OBJ_DIR)6809dasm.o
12
13
14##################
15# compiler flags #
16##################
17
18CC = gcc
19
20WFLAGS = -Wall -W
21
22OFLAGS = -O2
23
24CFLAGS = $(WFLAGS) $(OFLAGS)
25
26
27################
28# target rules #
29################
30
31.PHONY: all install clean
32
33all: 6809dasm
34
35clean:
36        rm -f 6809dasm $(OBJ_DIR)*.o
37
386809dasm: $(OBJ_DASM)
39        $(CC) -s -o 6809dasm $(OBJ_DASM)
40
41$(OBJ_DIR)%.o: %.c
42        $(CC) -c $(CFLAGS) -o $@ $<
43
Note: See TracBrowser for help on using the repository browser.