1# 2# Makefile 3# 4# Copyright 2007, 2008 Lancer-X/ASCEAI 5# 6# This file is part of Meritous. 7# 8# Meritous is free software: you can redistribute it and/or modify 9# it under the terms of the GNU General Public License as published by 10# the Free Software Foundation, either version 3 of the License, or 11# (at your option) any later version. 12# 13# Meritous is distributed in the hope that it will be useful, 14# but WITHOUT ANY WARRANTY; without even the implied warranty of 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16# GNU General Public License for more details. 17# 18# You should have received a copy of the GNU General Public License 19# along with Meritous. If not, see <http://www.gnu.org/licenses/>. 20# 21LDFLAGS = `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer -lz -lm 22CCFLAGS = ${CFLAGS} -Wall `${SDL_CONFIG} --cflags` 23# 24OBJS = src/levelblit.o \ 25 src/mapgen.o \ 26 src/demon.o \ 27 src/gamemap.o \ 28 src/tiles.o \ 29 src/save.o \ 30 src/help.o \ 31 src/audio.o \ 32 src/boss.o \ 33 src/ending.o 34# 35default: meritous 36 37%.o: %.c 38 ${CC} -c -o $@ $? ${CCFLAGS} 39 40meritous: ${OBJS} 41 ${CC} -o $@ $+ ${LDFLAGS} 42 43clean: 44 rm ${OBJS} 45 46