newton/Makefile
josh b66b6aee38 initial commit, pthread support missing
git-svn-id: svn://anubis/misc/newton@17 bd8a9e45-a331-0410-811e-c64571078777
2007-11-29 03:48:43 +00:00

18 lines
261 B
Makefile

CC := gcc
TARGET := newton
OBJS := complex.o newton.o
CFLAGS := -O2 `sdl-config --cflags`
LDFLAGS := `sdl-config --libs`
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) -o $@ -c $^ $(CFLAGS)
clean:
-rm -f $(TARGET) $(OBJS) *~