Skip to content

Commit

Permalink
Minor fix for makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rcr committed Apr 13, 2016
1 parent eb7d4ed commit 3640ade
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SDIR = src
TDIR = test

# Common header files
HDS = $(SDIR)/common.h
HDS = $(SDIR)/common.h $(SDIR)/config.h

# Source and object files
SRC = $(wildcard $(SDIR)/*.c)
Expand All @@ -18,9 +18,11 @@ SRC_T = $(wildcard $(TDIR)/*.c)
OBJ_T = $(patsubst $(TDIR)%.c,$(TDIR_O)%.test,$(SRC_T))
TDIR_O = $(TDIR)/bld

$(SDIR)/config.h:
default: rirc

$(SDIR)/config.h: config.def.h
@echo creating $@ from config.def.h
@cp $(SDIR)/config.def.h $@
@cp config.def.h $@

rirc: $(OBJ)
$(CC) $(LDFLAGS) -o $@ $^
Expand All @@ -43,4 +45,4 @@ clean:
@echo cleaning
@rm -f rirc $(SDIR_O)/*.o $(TDIR_O)/*.test

.PHONY: clean
.PHONY: clean default
File renamed without changes.

0 comments on commit 3640ade

Please sign in to comment.