src/chess/Makefile

changeset 34
c4d4b8a8f902
parent 32
8a0b85303ee8
child 50
41017d0a72c5
     1.1 --- a/src/chess/Makefile	Wed Apr 09 11:12:04 2014 +0200
     1.2 +++ b/src/chess/Makefile	Wed Apr 09 12:07:47 2014 +0200
     1.3 @@ -42,16 +42,16 @@
     1.4  OBJ = $(SRC:%.c=$(BUILDDIR)/release/%$(OBJ_EXT))
     1.5  OBJ_D = $(SRC:%.c=$(BUILDDIR)/debug/%$(OBJ_EXT))
     1.6  
     1.7 -all: $(OBJ)
     1.8 +all: $(BUILDDIR)/release $(OBJ)
     1.9  	$(AR) $(ARFLAGS) $(BUILDDIR)/release/chess$(LIB_EXT) $(OBJ)
    1.10  
    1.11 -debug: $(OBJ_D)
    1.12 +debug: $(BUILDDIR)/debug $(OBJ_D)
    1.13  	$(AR) $(ARFLAGS) $(BUILDDIR)/debug/chess$(LIB_EXT) $(OBJ_D)	
    1.14  
    1.15 -$(BUILDDIR)/release/%$(OBJ_EXT): %.c $(BUILDDIR)/release
    1.16 +$(BUILDDIR)/release/%$(OBJ_EXT): %.c
    1.17  	$(CC) -o $@ $(CFLAGS) -c $<
    1.18  	
    1.19 -$(BUILDDIR)/debug/%$(OBJ_EXT): %.c $(BUILDDIR)/debug
    1.20 +$(BUILDDIR)/debug/%$(OBJ_EXT): %.c
    1.21  	$(CC) -o $@ $(CFLAGS_D) -c $<
    1.22  
    1.23  $(BUILDDIR):

mercurial