From 941e0980278bd4f61519ae38f7b538d72876103f Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 16 Sep 2012 22:05:03 +0200 Subject: install into /usr/local/bin and /usr/local/share/osc-graphics --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b71021d..ed8c08f 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PREFIX := /usr/local + CC := gcc SDL_CFLAGS := $(shell sdl-config --cflags) @@ -15,7 +17,8 @@ LIBVLC_LDFLAGS := $(shell pkg-config libvlc --libs) LIBLO_CFLAGS := $(shell pkg-config liblo --cflags) LIBLO_LDFLAGS := $(shell pkg-config liblo --libs) -CFLAGS := -std=c99 -Wall -g -O0 \ +CFLAGS ?= -g -O0 +CFLAGS += -std=c99 -Wall \ $(SDL_CFLAGS) $(SDL_IMAGE_CFLAGS) $(SDL_GFX_CFLAGS) \ $(LIBVLC_CFLAGS) $(LIBLO_CFLAGS) LDFLAGS := -lm \ @@ -27,5 +30,10 @@ all : osc-graphics osc-graphics : main.o $(CC) $(LDFLAGS) $^ -o $@ +install : all + cp osc-graphics $(PREFIX)/bin + mkdir -p $(PREFIX)/share/osc-graphics/chuck + cp chuck/*.ck $(PREFIX)/share/osc-graphics/chuck + clean: $(RM) *.o osc-graphics{,.exe} -- cgit v1.2.3