From f292188965e3444cf84d25a13693bc863787f4a1 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 24 Apr 2021 15:21:14 +0100 Subject: modified makefile --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4cc1460..edbf455 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ PROG=asteroids CC=gcc -FLAGS=-lm `pkg-config -libs raylib` +FLAGS=-lm -lraylib -.DEFAULT_GOAL := run +.DEFAULT_GOAL := install ${PROG}: ${PROG}.c ${CC} ${PROG}.c -o ${PROG} ${FLAGS} -run: ${PROG} - ./${PROG} +install: ${PROG} + cp ${PROG} ~/.local/bin/ +clean: ${PROG} + rm ${PROG} -- cgit v1.2.1