Skip to content

Instantly share code, notes, and snippets.

@HanaanY
Last active January 22, 2017 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HanaanY/cdd3538e0f6856e4c091dee8556c913d to your computer and use it in GitHub Desktop.
Save HanaanY/cdd3538e0f6856e4c091dee8556c913d to your computer and use it in GitHub Desktop.
parser makefile
CFLAGS = -lm -lrt
INCS = parser.h
TARGET = test_parser
SOURCES = parser.c $(TARGET).c
CC = gcc
all: $(TARGET)
$(TARGET): $(SOURCES) $(INCS)
$(CC) $(SOURCES) -o $(TARGET) $(CFLAGS)
clean:
rm -f $(TARGET)
run: all
./$(TARGET)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment