]> git.sur5r.net Git - cc65/blob - src/sp65/make/gcc.mak
Added VIC2 sprites as output format. Started to code the processing pipeline:
[cc65] / src / sp65 / make / gcc.mak
1 #
2 # Makefile for the sp65 sprite and bitmap utility utility
3 #
4
5
6 # ------------------------------------------------------------------------------
7
8 # The executable to build
9 EXE     = sp65
10
11 # Library dir
12 COMMON  = ../common
13
14 #
15 CC      = gcc
16 CFLAGS  = -O2 -g -Wall -W -std=c89
17 override CFLAGS += -I$(COMMON)
18 EBIND   = emxbind
19 LDFLAGS =
20
21
22 # -----------------------------------------------------------------------------
23 # List of all object files
24
25 OBJS =  asm.o           \
26         attr.o          \
27         bin.o           \
28         bitmap.o        \
29         color.o         \
30         error.o         \
31         fileio.o        \
32         input.o         \
33         koala.o         \
34         main.o          \
35         output.o        \
36         palette.o       \
37         pcx.o           \
38         vic2sprite.o
39
40 LIBS = $(COMMON)/common.a
41
42 # ------------------------------------------------------------------------------
43 # Makefile targets
44
45 # Main target - must be first
46 .PHONY: all
47 ifeq (.depend,$(wildcard .depend))
48 all:    $(EXE)
49 include .depend
50 else
51 all:    depend
52         @$(MAKE) -f make/gcc.mak all
53 endif
54
55 $(EXE): $(OBJS) $(LIBS)
56         $(CC) $(LDFLAGS) $^ -o $@
57         @if [ $(OS2_SHELL) ] ;  then $(EBIND) $(EXE) ; fi
58
59 clean:
60         $(RM) *~ core.* *.map
61
62 zap:    clean
63         $(RM) *.o $(EXE) .depend
64
65 # ------------------------------------------------------------------------------
66 # Make the dependencies
67
68 .PHONY: depend dep
69 depend dep:     $(OBJS:.o=.c)
70         @echo "Creating dependency information"
71         $(CC) $(CFLAGS) -MM $^ > .depend
72
73
74