Skip to content

Commit

Permalink
Merge pull request #4 from zachomedia/fix-makefile
Browse files Browse the repository at this point in the history
Fix Makefile so it's a valid makefile
  • Loading branch information
ehashman committed Jan 17, 2016
2 parents 7bf1bcb + a703026 commit 938ae29
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
# DIRECTORIES
EXEC = ./dsd

# SETTINGS
CC = gcc
CFLAGS += -Wall -Wextra -MMD -O2 -fno-math-errno -fno-trapping-math -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fwrapv
CFLAGS += -Wall -Wextra -MMD -O2 -fno-math-errno -fno-trapping-math -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fwrapv
LDLIBS = -lmbe -lm

# FILES
CCFILES = dsd_main.c dsd_audio.c dsd_datascope.c dsd_dibit.c dsd_file.c dsd_frame.c dsd_frame_sync.c dsd_4fsk.c dmr_data.c dmr_voice.c dstar.c nxdn.c p25p1.c bch.c Golay.c
CCFILES = dsd_main.c dsd_audio.c dsd_datascope.c dsd_dibit.c dsd_file.c dsd_frame.c dsd_frame_sync.c dsd_4fsk.c dmr_data.c dmr_voice.c dstar.c nxdn.c p25p1.c bch.c fec.c
CCOBJECTS = ${CCFILES:.c=.o}
CCDEPENDS = ${CCOBJECTS:.o=.d}

# MAKE METHODS
%.o: ${CCFILES}
$(CC) $(CFLAGS) -c $<

dsd: ${CCOBJECTS}
${CC} ${LDFLAGS} ${CCOBJECTS} -o dsd ${LDLIBS}

-include ${CCDEPENDS}

.PHONY: build clean
.PHONY: build clean dsd

build: dsd

Expand Down

0 comments on commit 938ae29

Please sign in to comment.