This is not a duplicate as the other questions really didnt "state" the problem. What I know is that you do not do make dictionary but instead do make or make speller. When I do that (note: this is in pset 5 directory) it says No targets specified and no makefile found. Stop. Yikes... what happened


Where did your Makefile go? Create a text file called Makefile in your pset5 directory, and paste this default code into it:

# Makefile
# Computer Science 50
# Problem Set 5

# compiler to use
CC = clang

# flags to pass compiler
CFLAGS = -ggdb -O0 -Qunused-arguments -std=c99 -Wall -Werror

# name for executable
EXE = speller

# space-separated list of header files
HDRS = dictionary.h

# space-separated list of libraries, if any,
# each of which should be prefixed with -l

# space-separated list of source files
SRCS = speller.c dictionary.c

# automatically generated list of object files
OBJS = $(SRCS:.c=.o)

# default target
$(EXE): $(OBJS) $(HDRS) Makefile
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)

# dependencies 
$(OBJS): $(HDRS) Makefile

# housekeeping
rm -f core $(EXE) *.o```

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .