blob: d001a7eb8176595933672b2e6cbc86805a6adfb4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$FreeBSD$
--- Makefile.orig Sun Jun 20 18:38:31 2004
+++ Makefile Sun Jun 20 18:39:44 2004
@@ -2,11 +2,12 @@
OBJDIR = ./work/
BUILD = garnax-f1.1
TARFILE = $(BUILD).tar
-CC = gcc
+CC ?= gcc
# Note: -lpthread may be needed instead of -pthread
#CFLAGS = -Wall -pedantic -ansi -pthread -g
-CFLAGS = -Wall -pthread -g
+CFLAGS += -Wall -pthread -g
+LIBS= ${PTHREAD_LIBS}
# Arguments for SunOS
# CC = cc
@@ -19,7 +20,7 @@
install : garnax
garnax : work $(objects)
- $(CC) $(CFLAGS) $(objects) -o garnax
+ $(CC) $(CFLAGS) $(LIBS) $(objects) -o garnax
work :
mkdir -p work
|