Add makefile

This commit is contained in:
ken restivo 2020-05-24 23:26:48 -07:00
parent fa56080c44
commit 1e3f98b517
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
CFLAGS = -g -Wall -I../../../csrc/. -I../common/.
SRC = $(shell ls ../../../csrc/*.c) $(shell ls ../common/*.c) main.c
OBJ = $(SRC:.c=.o)
helloworld: $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) -li2c -o helloworld
clean:
-rm -f $(OBJ) helloworld