Skip to content
This repository
Browse code

Mostly compiling

  • Loading branch information...
commit 6b0d4fa3725beea11ca8c0e43b0fd3169407d15e 1 parent 151e2a8
ry authored March 28, 2011
15  Makefile
... ...
@@ -1,12 +1,15 @@
1 1
 test/echo-server: test/echo-server.c ol.a
2  
-	gcc -o test/echo-server test/echo-server.c ol.a
  2
+	$(CC) -o test/echo-server test/echo-server.c ol.a -lm
3 3
 
4  
-ol.a: ol-unix.o
5  
-	ar rcs ol.a ol-unix.o
  4
+ol.a: ol-unix.o ev/ev.o
  5
+	ar rcs ol.a ol-unix.o ev/ev.o
6 6
 
7 7
 ol-unix.o: ol-unix.c ol.h ol-unix.h
8  
-	gcc -c ol-unix.c -o ol-unix.o -lm
  8
+	$(CC) -c ol-unix.c -o ol-unix.o -lm
9 9
 
10  
-ev/libev.a: ol-unix.c ol.h ol-unix.h
11  
-	gcc -c ol-unix.c -o ol-unix.o -lm
  10
+ev/ev.o: ev/config.h ev/ev.c
  11
+	$(MAKE) -C ev
  12
+
  13
+ev/config.h:
  14
+	cd ev && ./configure
12 15
 
6  ol-unix.c
... ...
@@ -1,8 +1,8 @@
1 1
 #include "ol.h"
2 2
 
3  
-#define EV_STANDALONE 1
4  
-#define EV_MULTIPLICITY 0
5  
-#include "ev/ev.c"
  3
+#include <stdlib.h>
  4
+#include <errno.h>
  5
+#include <assert.h>
6 6
 
7 7
 
8 8
 void ol_tcp_io(EV_P_ ev_io* watcher, int revents);
1  test/echo-server.c
... ...
@@ -1,5 +1,6 @@
1 1
 #include "../ol.h"
2 2
 #include <stdio.h>
  3
+#include <stdlib.h>
3 4
 
4 5
 
5 6
 #define BUFSIZE 1024

0 notes on commit 6b0d4fa

Please sign in to comment.
Something went wrong with that request. Please try again.