initial commit
This commit is contained in:
25
makefile
Normal file
25
makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
# Compiler settings
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -std=c99 -I dependancies
|
||||
|
||||
# Linker settings
|
||||
LDFLAGS = -L dependancies
|
||||
# Standard Linux dependencies required by Raylib
|
||||
LDLIBS = -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 -lfann
|
||||
|
||||
# Project files
|
||||
TARGET = creature_sim
|
||||
SRC = main.c
|
||||
|
||||
# Default target
|
||||
all: $(TARGET)
|
||||
|
||||
# Compile the executable
|
||||
$(TARGET): $(SRC)
|
||||
$(CC) $(CFLAGS) $(SRC) -o $(TARGET) $(LDFLAGS) $(LDLIBS)
|
||||
|
||||
# Clean up build files
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user