Browse Source

add Makefile

master
parent
commit
6237bb5e5e
2 changed files with 16 additions and 0 deletions
  1. +2
    -0
      .gitignore
  2. +14
    -0
      Makefile

+ 2
- 0
.gitignore View File

@@ -1 +1,3 @@
*~
*.o
housic

+ 14
- 0
Makefile View File

@@ -0,0 +1,14 @@
CC = gcc

exe = housic
src = $(wildcard *.c)
obj = $(src:.c=.o)

LDFLAGS =

$(exe): $(obj)
$(CC) -o $@ $^ $(LDFLAGS)

.PHONY: clean
clean:
rm -f $(obj) $(exe)

Loading…
Cancel
Save