소스 검색

Support generic target compilation

pull/260/head
Ray 8 년 전
부모
커밋
17b3f5e02e
2개의 변경된 파일8개의 추가작업 그리고 10개의 파일을 삭제
  1. +4
    -5
      docs/examples/web/makefile
  2. +4
    -5
      examples/Makefile

+ 4
- 5
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)

+ 4
- 5
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)

불러오는 중...
취소
저장