Skip to content

LinLin-0628/CS50

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Instruction

For folder without Makefile

Can't use make --> use this command instead
gcc -o hello hello.c -lcs50


Use Makefile instead

# Compiler
CC = gcc

# Flags
CFLAGS = -lcs50

# Target executable
TARGET = foo

# Source files
SRC = foo.c

# Build target
$(TARGET): $(SRC)
	$(CC) $(SRC) -o $(TARGET) $(CFLAGS)

# Clean target to remove the executable
clean:
	rm -f $(TARGET)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published