Skip to content

Loading…

getting `make` to work without pthread issues #2

Merged
merged 1 commit into from

3 participants

@jzacsh

This should fix issue #1, but just an FYI, I get this warning now:

$ make

cc -g -Wall   -c -o gant.o gant.c
gant.c: In function ‘chevent’:
gant.c:1125:8: warning: variable ‘newdata’ set but not used [-Wunused-but-set-variable]
cc -g -Wall   -c -o antlib.o antlib.c
g++ -g -Wall gant.o antlib.o -o gant -lpthread -lm
@todd534

:+1: (this worked for me when I moved to a new machine)

@jamesarbrown jamesarbrown merged commit 8290e59 into jamesarbrown:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 4 additions and 1 deletion.
  1. +4 −1 Makefile
View
5 Makefile
@@ -1,9 +1,12 @@
CFLAGS=-g -Wall
LDFLAGS=-lpthread -lm
+OBJS=gant.o antlib.o
+
all: gant
-gant: gant.o antlib.o
+gant: $(OBJS)
+ $(CXX) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS)
gant.o: gant.c antdefs.h
Something went wrong with that request. Please try again.