setup Makefile with raylib raygui deps

This commit is contained in:
2026-09-29 10:54:15 -07:00
parent 9cc603c56c
commit 1eadc166d6
5 changed files with 6515 additions and 2 deletions
+1
View File
@@ -1,2 +1,3 @@
build/
*~
*.o
+16
View File
@@ -0,0 +1,16 @@
CC = cc
CFLAGS = -g -Wall -Iinclude
SOURCES = $(wildcard src/*.c)
OBJECTS = $(SOURCES:.c=.o)
LDFLAGS = -lraylib
HEADERS = \
include/raygui.h
adhd: $(OBJECTS)
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf $(OBJECTS) adhd
Executable
BIN
View File
Binary file not shown.
+6464
View File
File diff suppressed because it is too large Load Diff
+32
View File
@@ -1,6 +1,38 @@
#include <stdio.h>
#include <raygui.h>
#include <raylib.h>
#define WINDOW_HEIGHT 700
#define WINDOW_WIDTH 500
#define OVERLAY_HEIGHT 300
#define OVERLAY_WIDTH 700
void render_window() {
ClearBackground(RAYWHITE);
DrawFPS(WINDOW_WIDTH - 50, 10);
// draw a button for toggle mode
}
void render_overlay() {
ClearBackground(BLANK);
DrawFPS(OVERLAY_WIDTH - 50, 10);
// draw a button to toggle mode
}
int main(int argc, char *argv[]) {
printf("Welcome to Flowy.adhd\n");
InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "Flowy.adhd");
while (!WindowShouldClose()) {
BeginDrawing();
render_window();
EndDrawing();
}
CloseWindow();
return 0;
}