Skip to content
Snippets Groups Projects
Commit 0bdb7ba2 authored by yongk1's avatar yongk1
Browse files

Makefile

parent 54d0981a
Branches
No related tags found
No related merge requests found
Pipeline #1852 canceled
Makefile 0 → 100644
##Adapted from http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/
CC=gcc
CFLAGS=-Wall -Wextra -std=gnu99 -I.
DEPS = sort.h
OBJ = image_tagger.o
EXE = image_tagger
##Create .o files from .c files. Searches for .c files with same .o names given in OBJ
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
##Create executable linked file from object files.
$(EXE): $(OBJ)
gcc -o $@ $^ $(CFLAGS)
##Delete object files
clean:
/bin/rm $(OBJ)
##Performs clean (i.e. delete object files) and deletes executable
clobber: clean
/bin/rm $(EXE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment