whatever added include;src;whatever.h;updated makefile
This commit is contained in:
@@ -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}/
|
||||
|
||||
Reference in New Issue
Block a user