Skip to content

Commit

Permalink
new binary for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieep-Coding committed May 14, 2024
1 parent 6c03530 commit 2e862dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
raylib_app
raylib_app
snowfall
26 changes: 6 additions & 20 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
# Makefile for raylib application

# Compiler
CC = gcc

# Compiler flags
CFLAGS = -Wall -Wextra -std=c99
LDFLAGS = -lraylib -lm -lpthread -ldl -lGL -lX11

# raylib library flags
LIBS = -lraylib -lm

# Source files
SRCS = raylib_app.c

# Executable name
EXEC = raylib_app

all: $(EXEC)
TARGET = snowfall

$(EXEC): $(SRCS)
$(CC) $(CFLAGS) $(SRCS) -o $(EXEC) $(LIBS)
all: $(TARGET)

run: $(EXEC)
./$(EXEC)
$(TARGET): raylib_app.c
$(CC) $(CFLAGS) -o $(TARGET) raylib_app.c $(LDFLAGS)

clean:
rm -f $(EXEC)
rm -f $(TARGET)

0 comments on commit 2e862dd

Please sign in to comment.