From a7030266babb2df787aa9085035e248917f90788 Mon Sep 17 00:00:00 2001 From: Zachary Seguin Date: Wed, 13 Jan 2016 14:41:01 -0500 Subject: [PATCH] Fix Makefile so it's a valid makefile --- Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 8b881ab..44f7d88 100644 --- a/Makefile +++ b/Makefile @@ -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