Browse code

- preliminary windows-cygwin support added to the Makefile

Andrei Pelinescu-Onciul authored on 11/10/2001 17:13:05
Showing 1 changed files
... ...
@@ -29,7 +29,7 @@ ARCH = $(shell uname -s)
29 29
 ifeq ($(ARCH), Linux)
30 30
 
31 31
 CC=gcc
32
-CFLAGS=-O2 -pg -Wcast-align #-Wmissing-prototypes  -Wall
32
+CFLAGS=-O2 -Wcast-align #-Wmissing-prototypes  -Wall
33 33
 LEX=flex
34 34
 YACC=bison
35 35
 YACC_FLAGS=-d -b cfg
... ...
@@ -61,6 +61,19 @@ LIBS=-lfl
61 61
 
62 62
 endif
63 63
 
64
+ifeq ($(ARCH), CYGWIN_NT-4.0)
65
+
66
+CC=gcc
67
+CFLAGS=-O2 -Wcast-align #-Wmissing-prototypes  -Wall
68
+LEX=flex
69
+YACC=bison
70
+YACC_FLAGS=-d -b cfg
71
+# on linux and freebsd keep it empty (e.g. LIBS= )
72
+# on solaris add -lxnet (e.g. LIBS= -lxnet)
73
+LIBS=-lfl
74
+
75
+endif
76
+
64 77
 
65 78
 MKDEP=gcc -M $(DEFS)
66 79