Add makefile
This commit is contained in:
parent
fa56080c44
commit
1e3f98b517
|
@ -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
|
||||
|
Loading…
Reference in New Issue