Skip to content
Snippets Groups Projects
Commit e4947d65 authored by Miguel Espino's avatar Miguel Espino
Browse files

made the makefile

parent a0721fed
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
#------------------------------------#
# Miguel Espino
# ll352639
# lfc083
# ------------------------------------#
CC = gcc
CFLAGS = -g
CPPFLAGS = -Wall -std=gnu90 -pedantic -Wextra
SORT_OBJS = complexComp.o \
doubleComp.o \
intComp.o \
input-routines.o \
qsort.o \
swap.o \
sortMain.o \
.PHONY: all clean
all: myQsort
clean:
rm -rf myQsort $(SORT_OBJS)
# COMPILING OBJECTS
complexComp.o : complexComp.c qsort.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) complexComp.c -o complexComp.o -I.
doubleComp.o : doubleComp.c qsort.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) doubleComp.c -o doubleComp.o -I.
intComp.o : intComp.c qsort.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) intComp.c -o intComp.o -I.
qsort.o : qsort.c qsort.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) qsort.c -o qsort.o -I.
input-routines.o : input-routines.c qsort.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) input-routines.c -o input-routines.o -I.
swap.o : swap.c qsort.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) swap.o -o swap.c -I.
sortMain.o : sortMain.c qsort.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) sortMain.c -o sortMain.c -I.
myQsort : $(SORT_OBJS)
$(CC) $(SORT_OBJS) -o myQsort -lm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment