1 --- asap-3.1.3/Makefile.orig 2012-09-08 11:07:08.000000000 +0200
2 +++ asap-3.1.3/Makefile 2013-04-13 07:42:52.750361640 +0200
5 +libdir := $(prefix)/lib
6 srcdir := $(dir $(lastword $(MAKEFILE_LIST)))
7 -CC = $(DO)gcc -s -O2 -Wall -o $@ $(if $(filter %.so,$@),-shared -fPIC) $(INCLUDEOPTS) $(filter %.c,$^)
13 +COMPLINK = $(DO)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(if $(filter %.so,$@),-shared -fPIC) $(INCLUDEOPTS) $(CPPFLAGS) $(filter %.c,$^)
14 +LTCOMPILE = $(DO)$(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CFLAGS) -o $@ $(INCLUDEOPTS) $(CPPFLAGS) $(filter %.c,$^)
15 +LIBLINK = $(DO)$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ -rpath $(libdir)
16 CITO = $(DO)cito.exe -o $@ $(patsubst %,-I %,$(sort $(dir $(filter-out %.ci,$^)))) $(filter %.ci,$^)
18 INSTALL_PROGRAM = mkdir -p $(DESTDIR)$(2) && $(INSTALL) $(1) $(DESTDIR)$(2)/$(1)
19 INSTALL_DATA = mkdir -p $(DESTDIR)$(2) && $(INSTALL) -m 644 $(1) $(DESTDIR)$(2)/$(1)
20 +LTINSTALL = mkdir -p $(DESTDIR)$(2) && $(LIBTOOL) --mode=install $(INSTALL) $(1) $(DESTDIR)$(2)/$(1)
21 ASCIIDOC = $(DO)asciidoc -o - $(1) $< | sed -e "s/527bbd;/c02020;/" | xmllint --valid --nonet -o $@ -
22 SDL_CFLAGS = `sdl-config --cflags`
23 SDL_LIBS = `sdl-config --libs`
28 -all: asapconv libasap.a
29 +all: asapconv libasap.la
32 install: install-asapconv install-lib
36 asapconv: $(call src,asapconv.c asap.[ch])
41 install-asapconv: asapconv
54 -asap.o: $(call src,asap.[ch])
61 +asap.lo: $(call src,asap.[ch])
65 -install-lib: libasap.a $(srcdir)asap.h
66 +install-lib: libasap.la $(srcdir)asap.h
67 $(call INSTALL_DATA,$(srcdir)asap.h,$(prefix)/include)
68 - $(call INSTALL_DATA,libasap.a,$(prefix)/lib)
69 + $(call LTINSTALL,libasap.la,$(libdir))
76 asap-sdl: $(call src,asap-sdl.c asap.[ch])
77 - $(CC) $(SDL_CFLAGS) $(SDL_LIBS)
78 + $(COMPLINK) $(SDL_CFLAGS) $(SDL_LIBS)
85 asapscan: $(srcdir)asapscan.c asap-asapscan.h
88 CLEAN += asapscan asapscan.exe
90 asap-asapscan.h: $(call src,asap.ci asap6502.ci asapinfo.ci cpu6502.ci pokey.ci) $(ASM6502_PLAYERS_OBX) | asap-asapscan.c