view scn2k/Makefile.in @ 14:8da1d92ac8f8

Don't create fonts faces for size <= 0, and update objects when their font size is set
author thib
date Sat, 09 Aug 2008 12:04:08 +0000
parents 223b71206888
children
line wrap: on
line source

@SET_MAKE@
CC		= @CC@
CXX		= @CXX@
LD		= @CC@
AR		= ar
RANLIB		= @RANLIB@

CFLAGS=  -I.. $(LOCAL_DEF) @CFLAGS@ @DEFS@ @SDL_CFLAGS@ -pthread -O2
CXXFLAGS	= $(CFLAGS)
LDFLAGS = @LDFLAGS@ -ljpeg @SDL_LIBS@  -lSDL_mixer @SMPEG_LIBS@ @FT2_LIBS@ @LIBS@ -pthread

SRCS	 = scn2k_cmd.cc scn2k_text.cc scn2k_grp.cc scn2k_impl.cc

OBJS	 = ${SRCS:.cc=.o}

all: test libscn2k.a scn2kdump gandump

test: test.o $(OBJS)
	$(LD) -o test test.o $(OBJS) ../window/libwindow.a ../music2/libmusic.a ../system/libsystem.a ../font/libfont.a  $(LDFLAGS)

scn2kdump: scn2kdump.o
	$(LD) -o scn2kdump scn2kdump.o ../system/libsystem.a $(LDFLAGS)

gandump: gandump.o
	$(LD) -o gandump gandump.o $(LDFLAGS)

libscn2k.a: ${OBJS}
	rm -f libscn2k.a
	${AR} clq libscn2k.a ${OBJS}
	$(RANLIB) libscn2k.a

clean:
	rm -f test libscn2k.a ${OBJS} *.bak *.core gandump scn2kdump

.c.o:
	$(CC) -c $(CFLAGS) -o $@ $<

.cc.o:
	$(CXX) -c $(CFLAGS) -o $@ $<