implemented poor timing
This commit is contained in:
parent
5e7ab246fe
commit
6244999b08
2 changed files with 10 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -8,14 +8,14 @@ OBJS := $(patsubst src/%.c, out/%.o, $(SRCS))
|
|||
|
||||
ALL: $(TARGET)
|
||||
|
||||
$(TARGET): mkdir $(OBJS)
|
||||
$(TARGET): mkdir $(OBJS)
|
||||
$(CC) -o out/$@ $(filter-out $<, $^) $(LIBRARIES)
|
||||
|
||||
mkdir:
|
||||
mkdir -p out
|
||||
|
||||
out/%.o: src/%.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue