ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/padSDL/Makefile
Revision: 1.2
Committed: 2003-02-14T22:06:54Z (21 years, 9 months ago) by cebix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +14 -8 lines
Error occurred while calculating annotation data.
Log Message:
added ePSXe support

File Contents

# Content
1 ## Version
2 VERSION = 1
3 BUILD = 1
4
5 ## Files
6 PLUGIN = libpadSDL-$(VERSION).$(BUILD).so
7 PLUGINEPSXE = libpadSDL-epsxe-$(VERSION).$(BUILD).so
8 SRCS = padsdl.c
9
10 ## Config
11 CC = gcc
12 CFLAGS = -O2 -fPIC
13 CPPFLAGS = `sdl-config --cflags` -DVERSION=$(VERSION) -DBUILD=$(BUILD)
14 LDFLAGS = -shared
15 LIBS = `sdl-config --libs`
16 SHELL = /bin/sh
17
18 ## Rules
19 all: $(PLUGIN) $(PLUGINEPSXE)
20
21 DEPS = $(addprefix .deps/, $(addsuffix .P, $(basename $(SRCS))))
22
23 $(PLUGIN): .deps padsdl.o
24 $(CC) $(LDFLAGS) -Wl,-soname,$(PLUGIN) -o $@ padsdl.o $(LIBS)
25
26 $(PLUGINEPSXE): .deps padsdl-epsxe.o
27 $(CC) $(LDFLAGS) -Wl,-soname,$(PLUGIN) -o $@ padsdl-epsxe.o $(LIBS)
28
29 padsdl.o: padsdl.c
30 $(CC) $(CFLAGS) $(CPPFLAGS) -Wp,-MD,.deps/$(*F).P -o $@ -c $<
31
32 padsdl-epsxe.o: padsdl.c
33 $(CC) $(CFLAGS) $(CPPFLAGS) -DEPSXE -Wp,-MD,.deps/$(*F).P -o $@ -c $<
34
35 clean:
36 rm -f padsdl.o padsdl-epsxe.o $(PLUGIN) $(PLUGINEPSXE)
37
38 distclean: clean
39 rm -rf .deps
40
41 .deps:
42 @[ -d .deps ] || mkdir .deps >/dev/null 2>&1
43
44 -include $(DEPS)