Skip to content

Fixes to Makefile.macosx #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
More adjustments to Makefile.macosx, now successfully compiles
- Re-work logic to determine if make should build gps tracking support. gpsd support can now be tested.

- Temporarily remove the output file of unit test 'atest'. Make was erroring out when completing that target for an unknown reason.

- Direwolf now compiles sucessfully on OS X 10.11
  • Loading branch information
mistermatt2u committed Dec 17, 2015
commit fcc548923aa05b848b20c2f88f5ebea69587ae44
15 changes: 9 additions & 6 deletions Makefile.macosx
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@ LDLIBS += -framework Foundation -framework CoreServices

CFLAGS += -DUSE_PORTAUDIO -I/opt/local/include

# Uncomment following lines to enable GPS interface & tracker function.
# Not available for MacOSX.
# Although MacPorts has gpsd, wonder if it's the same thing.

#CFLAGS += -DENABLE_GPSD
#LDLIBS += -lgps
# Enable GPS interface and tracker function if the gpsd package is installed.

ifeq ($(shell which -s gpsd),)
CFLAGS += -DENABLE_GPSD
LDLIBS += -lgps
endif


# Name of current directory.
# Used to generate zip file name for distribution.
Expand Down Expand Up @@ -401,7 +403,7 @@ testagc : atest.c demod.c dsp.c demod_afsk.c demod_9600.c hdlc_rec.c hdlc_rec2.o

atest : atest.c fsk_fast_filter.h demod.c dsp.c demod_afsk.c demod_9600.c hdlc_rec.c hdlc_rec2.o multi_modem.o rrbb.o \
fcs_calc.c ax25_pad.c decode_aprs.c dwgpsnmea.o dwgps.o serial_port.o telemetry.c latlong.c symbols.c textcolor.c tt_text.c
$(CC) $(CFLAGS) -o $@ $^ -lm
$(CC) $(CFLAGS) $^ -lm

# Unit test for inner digipeater algorithm

Expand Down Expand Up @@ -461,6 +463,7 @@ depend : $(wildcard *.c)
clean :
rm -f direwolf decode_aprs text2tt tt2text ll2utm utm2ll aclients atest log2gpx gen_fff gen_packets ttcalc \
fsk_fast_filter.h *.o *.a
rm -rf aclients.dSYM
echo " " > tune.h


Expand Down