diff options
| author | Ray <raysan5@gmail.com> | 2017-04-08 11:12:25 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2017-04-08 11:12:25 +0200 |
| commit | 17b3f5e02e38d57f62bfcd86f9398db9e14e6921 (patch) | |
| tree | d8fa1b017a4b63ecff2726d10c55eb881853f8b2 /docs/examples | |
| parent | d2d4b17633d623999eb2509ff24f741b5d669b35 (diff) | |
| download | raylib-17b3f5e02e38d57f62bfcd86f9398db9e14e6921.tar.gz raylib-17b3f5e02e38d57f62bfcd86f9398db9e14e6921.zip | |
Support generic target compilation
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/web/makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/examples/web/makefile b/docs/examples/web/makefile index 0d12cb09..139b3e8a 100644 --- a/docs/examples/web/makefile +++ b/docs/examples/web/makefile @@ -271,6 +271,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) @@ -535,8 +539,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) |
