aboutsummaryrefslogtreecommitdiffstats
path: root/simple_game/Makefile
diff options
context:
space:
mode:
authornathansmith117 <nathansmith117@sdf.org>2024-05-22 04:51:55 +0000
committernathansmith117 <nathansmith117@sdf.org>2024-05-22 04:51:55 +0000
commitbdd8d563ff3f0eec41cc45d07f6c00622a531a72 (patch)
treeceb9cac325b893b20b5d0303e988252136680e03 /simple_game/Makefile
downloadforgorttonProjects-bdd8d563ff3f0eec41cc45d07f6c00622a531a72.tar.gz
forgorttonProjects-bdd8d563ff3f0eec41cc45d07f6c00622a531a72.tar.bz2
forgorttonProjects-bdd8d563ff3f0eec41cc45d07f6c00622a531a72.zip
first commitHEADmain
Diffstat (limited to 'simple_game/Makefile')
-rw-r--r--simple_game/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/simple_game/Makefile b/simple_game/Makefile
new file mode 100644
index 0000000..d37d48f
--- /dev/null
+++ b/simple_game/Makefile
@@ -0,0 +1,13 @@
+FLCON = fltk-config
+COMPILER = $(shell $(FLCON) --cxx)
+CFLAGS = $(shell $(FLCON) --use-images --cxxflags)
+LDFLAGS = $(shell $(FLCON) --use-images --ldstaticflags) -static-libstdc++ -static-libgcc
+
+TARGET = simple_game
+
+$(TARGET): $(TARGET).cpp
+ $(COMPILER) $(CFLAGS) -o $(TARGET) $(TARGET).cpp $(LDFLAGS)
+debug:
+ $(COMPILER) $(CFLAGS) -o $(TARGET) $(TARGET).cpp $(LDFLAGS) -g
+clean:
+ rm $(TARGET)