Rev | Line | |
---|
[1] | 1 | ########################################################################## |
---|
| 2 | # targets: # |
---|
| 3 | ########################################################################## |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | ################ |
---|
| 7 | # object files # |
---|
| 8 | ################ |
---|
| 9 | |
---|
| 10 | OBJ_DIR = |
---|
| 11 | OBJ_DASM = $(OBJ_DIR)6809dasm.o |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | ################## |
---|
| 15 | # compiler flags # |
---|
| 16 | ################## |
---|
| 17 | |
---|
| 18 | CC = gcc |
---|
| 19 | |
---|
| 20 | WFLAGS = -Wall -W |
---|
| 21 | |
---|
| 22 | OFLAGS = -O2 |
---|
| 23 | |
---|
| 24 | CFLAGS = $(WFLAGS) $(OFLAGS) |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | ################ |
---|
| 28 | # target rules # |
---|
| 29 | ################ |
---|
| 30 | |
---|
| 31 | .PHONY: all install clean |
---|
| 32 | |
---|
| 33 | all: 6809dasm |
---|
| 34 | |
---|
| 35 | clean: |
---|
| 36 | rm -f 6809dasm $(OBJ_DIR)*.o |
---|
| 37 | |
---|
| 38 | 6809dasm: $(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.