Skip to content
Snippets Groups Projects
Commit f8dd5dd5 authored by Battle C Users's avatar Battle C Users
Browse files

modify Makefile for gprof build

parent 77f41839
No related branches found
No related tags found
No related merge requests found
SRCS := test.c fx_s1615_double.c fx_1615_longlong.c
OBJS := $(SRCS:.c=.o)
CC := gcc # pre-defined macro can be redefined!
#CFLAGS = -c -Wall -g
CFLAGS = -Wall
CFLAGS := -c -Wall -lm
PG :=
DEFINE :=
test : $(OBJS)
$(CC) -o $@ $^ -lm
$(CC) -o $@ $^ -lm $(PG)
# default rule
.c.o :
$(CC) $(CFLAGS) $< -lm
$(CC) $(CFLAGS) $(DEFINE) $<
# dummy target - no dependency
clean :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment