Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 712 Bytes
CFLAGS := -Wall -Werror -g -ggdb -fvisibility=hidden -std=c99 -I. -ltinfo
OBJS := npraises.o gridfluid.o
PROGS := test
ELEMENTARY_CFLAGS := $(shell pkg-config --cflags elementary)
ELEMENTARY_LIBS := $(shell pkg-config --libs elementary)
all: $(OBJS) $(PROGS)
npraises.o: npraises.c npraises.h Makefile
gcc -c $(CFLAGS) -fPIC -o npraises.o npraises.c
gridfluid.o: gridfluid.c gridfluid.h Makefile
gcc -c $(CFLAGS) -fPIC -o gridfluid.o gridfluid.c
test: test.c npraises.h npraises.o gridfluid.o gridfluid.h Makefile
gcc $(CFLAGS) -lm -o test test.c npraises.o gridfluid.o
find . -name 'core*' -exec rm {} \;
testgui: testgui.c
gcc $(CFLAGS) $(ELEMENTARY_CFLAGS) $(ELEMENTARY_LIBS) -o testgui testgui.c