Skip to content

Commit

Permalink
Remove example building from main Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Knadler committed Apr 25, 2013
2 parents e521e68 + 575f185 commit f1d97f0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ STANDARD = -std=gnu99
OPTIMIZATION = -O3
CFLAGS = $(DEBUG) $(ERROR) $(PEDANTIC) $(STANDARD) $(OPTIMIZATION)

LDFLAGS = -Iinclude/ -Llib/ -lm -lmt
ARFLAGS = rcs
YFLAGS = -vyd
LFLAGS =
Expand Down Expand Up @@ -78,10 +77,8 @@ check_test:
make -C $(CHECK_DIR) rebuild

# Example Targets
examples: libmt example_cli

example_cli:
$(CC) $(LDFLAGS) $(CFLAGS) $(EXAMPLES_DIR)/cli.c -o $(EXAMPLES_DIR)/cli
examples: libmt
make -C $(EXAMPLES_DIR)

# Clean Targets
clean: clean_build clean_test
Expand Down
3 changes: 1 addition & 2 deletions examples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# example binary
marktab
cli
10 changes: 10 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CC = gcc
FLAGS = -I../include -L../lib -lmt

all: cli

cli: cli.c
$(CC) $(FLAGS) $< -o $@

clean:
rm -f cli
1 change: 1 addition & 0 deletions examples/tab.mt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1:1

0 comments on commit f1d97f0

Please sign in to comment.