summaryrefslogtreecommitdiff
path: root/meme/Makefile
blob: d702c2c87c5c9cf7be4a946aaf48eae3bcbaf25c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# Makefile - Build Measmesh
#
# Written 2014-2016 by Werner Almesberger
# Copyright 2014-2016 by Werner Almesberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#

include Makefile.c-common

CFLAGS = -Wall -Wshadow -g -O9
OBJS = meme.o stl.o mesh.o gui.o time.o plane.o text.o gaux.o overlay.o \
       slice.o screen.o marker.o
CFLAGS += $(shell sdl-config --cflags)
LDLIBS = $(shell sdl-config --libs) -lSDL_gfx -lSDL_Pango -lgsl -lgslcblas -lm

NAME = meme


.PHONY:		all clean spotless

all::		$(NAME)

$(NAME):	$(OBJS)
		$(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LDLIBS)

spotless:	clean
		rm -f $(NAME)