Skip to content

Instantly share code, notes, and snippets.

@erenon
Created December 6, 2010 19:24
Show Gist options
  • Save erenon/730775 to your computer and use it in GitHub Desktop.
Save erenon/730775 to your computer and use it in GitHub Desktop.
Makefile
C_SRCS += \
./library.c \
./functions.c \
./konyvtar.c
OBJS += \
./library.o \
./functions.o \
./konyvtar.o
./%.o: ./src/%.c
gcc -O0 -Wall -c -std=c89 -o"$@" "$<"
clean:
-$(RM) $(OBJS)
konyvtar: $(OBJS) $(C_SRCS)
gcc -o konyvtar $(OBJS)
all: konyvtar clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment