whatever added include;src;whatever.h;updated makefile

This commit is contained in:
2016-11-18 19:43:52 -07:00
parent c6d1a1eadf
commit bec2261d1d
3 changed files with 52 additions and 39 deletions

View File

@@ -1,7 +1,7 @@
PREFIX=/usr
#OBJS specifies which files to compile as part of the project
OBJS = whatever.c
OBJS = src/whatever.c
#CC specifies which compiler to use
CC = clang
@@ -16,9 +16,12 @@ LINKER_FLAGS = -lSDL2
#OBJ_NAME specifies the name of our executable
OBJ_NAME= whatever
#INCLUDES where the INCLUDE directory is
INCLUDES = -I./include
#This is the target that compiles our executable
all : $(OBJS)
$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)
$(CC) $(OBJS) $(COMPILER_FLAGS) $(INCLUDES) $(LINKER_FLAGS) -o $(OBJ_NAME)
install :
mkdir -p ${PREFIX}/share/${OBJ_NAME}
cp ${OBJ_NAME} ${PREFIX}/share/${OBJ_NAME}/