Last active
January 22, 2017 23:35
-
-
Save HanaanY/cdd3538e0f6856e4c091dee8556c913d to your computer and use it in GitHub Desktop.
parser makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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