aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/Makefile b/examples/Makefile
index ac5d2226..58e8cb50 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -278,6 +278,10 @@ EXAMPLES = \
# in this case, the 'default' target entry is raylib
all: examples
+# generic compilation pattern
+%: %.c
+ $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -D$(PLATFORM) $(WINFLAGS)
+
# compile all examples
examples: $(EXAMPLES)
@@ -565,8 +569,3 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
del *.o *.html *.js
endif
@echo Cleaning done
-
-# instead of defining every module one by one, we can define a pattern
-# this pattern below will automatically compile every module defined on $(OBJS)
-#%.exe : %.c
-# $(CC) -o $@ $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -D$(PLATFORM)