forked from libevent/libevent-book
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have the example-building code look at LEBOOK_CFLAGS
Also add a makefile for examples_R8. Also, "make check" now tries to build all the examples.
- Loading branch information
1 parent
1d9d9b4
commit b564241
Showing
3 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
CC=gcc | ||
CFLAGS=-g -Wall $(LEBOOK_CFLAGS) | ||
|
||
EXAMPLE_BINARIES=R8_echo_server | ||
|
||
all: examples | ||
|
||
examples: $(EXAMPLE_BINARIES) | ||
|
||
R8_echo_server: R8_echo_server.o | ||
$(CC) $(CFLAGS) R8_echo_server.o -o R8_echo_server -levent_core | ||
|
||
.c.o: | ||
$(CC) $(CFLAGS) -c $< | ||
|
||
clean: | ||
rm -f *~ | ||
rm -f *.o | ||
rm -f $(EXAMPLE_BINARIES) |