projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mallocのサイズ指定誤りを修正
[YACASL2.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index
188d00d
..
a394531
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-4,7
+4,7
@@
CFLAGS := -g -Wall -Wextra -I $(INCLUDE)
RM := rm -f
COMMONSRC := word.c cmem.c cerr.c
RM := rm -f
COMMONSRC := word.c cmem.c cerr.c
-CASL2SRC := struct.c
cmd.c
hash.c
+CASL2SRC := struct.c hash.c
ASSRC := assemble.c token.c label.c
EXECSRC := exec.c dump.c
ASSRC := assemble.c token.c label.c
EXECSRC := exec.c dump.c
@@
-14,12
+14,15
@@
all: ../casl2 ../comet2 ../dumpword
../casl2: casl2.o $(subst .c,.o,$(COMMONSRC) $(CASL2SRC) $(ASSRC) $(EXECSRC))
$(CC) $(CFLAGS) -o $@ $^
../casl2: casl2.o $(subst .c,.o,$(COMMONSRC) $(CASL2SRC) $(ASSRC) $(EXECSRC))
$(CC) $(CFLAGS) -o $@ $^
+ @rm -f *.d
../comet2: comet2.o $(subst .c,.o,$(COMMONSRC) $(CASL2SRC) $(EXECSRC))
$(CC) $(CFLAGS) -o $@ $^
../comet2: comet2.o $(subst .c,.o,$(COMMONSRC) $(CASL2SRC) $(EXECSRC))
$(CC) $(CFLAGS) -o $@ $^
+ @rm -f *.d
../dumpword: dumpword.o $(subst .c,.o,$(COMMONSRC))
$(CC) $(CFLAGS) -o $@ $^
../dumpword: dumpword.o $(subst .c,.o,$(COMMONSRC))
$(CC) $(CFLAGS) -o $@ $^
+ @rm -f *.d
%.o: %.c
$(CC) -c $(CFLAGS) $<
%.o: %.c
$(CC) -c $(CFLAGS) $<
@@
-33,4
+36,5
@@
TAGS: $(INCLUDE)/*.h *.c
@if test `which etags`; then etags $^; fi
clean:
@if test `which etags`; then etags $^; fi
clean:
- @rm -f ../casl2 ../comet2 ../dumpword *.o *.d
+ @rm -f ../casl2 ../comet2 ../dumpword
+ @rm -f *.o *.d