Moved the files around and made a Makefile
new file: src/Makefile renamed: nms.c -> src/nms.c
This commit is contained in:
parent
3dc7cb41d4
commit
3632dbcdbe
14
src/Makefile
Normal file
14
src/Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
CC=gcc
|
||||
ODIR=obj
|
||||
|
||||
_OBJ = nms.o
|
||||
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
||||
|
||||
$(ODIR)/%.o: %.c
|
||||
$(CC) -c -o $@ $<
|
||||
|
||||
nms: $(OBJ)
|
||||
$(CC) -o $@ $^
|
||||
|
||||
clean:
|
||||
rm -f $(ODIR)/*.o nms
|
Loading…
Reference in New Issue
Block a user