Jelajahi Sumber

- preliminary windows-cygwin support added to the Makefile

Andrei Pelinescu-Onciul 24 tahun lalu
induk
melakukan
0ae4dfdcd8
1 mengubah file dengan 14 tambahan dan 1 penghapusan
  1. 14 1
      Makefile

+ 14 - 1
Makefile

@@ -29,7 +29,7 @@ ARCH = $(shell uname -s)
 ifeq ($(ARCH), Linux)
 
 CC=gcc
-CFLAGS=-O2 -pg -Wcast-align #-Wmissing-prototypes  -Wall
+CFLAGS=-O2 -Wcast-align #-Wmissing-prototypes  -Wall
 LEX=flex
 YACC=bison
 YACC_FLAGS=-d -b cfg
@@ -61,6 +61,19 @@ LIBS=-lfl
 
 endif
 
+ifeq ($(ARCH), CYGWIN_NT-4.0)
+
+CC=gcc
+CFLAGS=-O2 -Wcast-align #-Wmissing-prototypes  -Wall
+LEX=flex
+YACC=bison
+YACC_FLAGS=-d -b cfg
+# on linux and freebsd keep it empty (e.g. LIBS= )
+# on solaris add -lxnet (e.g. LIBS= -lxnet)
+LIBS=-lfl
+
+endif
+
 
 MKDEP=gcc -M $(DEFS)