diff options
author | FreeArtMan <dos21h@gmail.com> | 2016-05-15 22:30:26 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2016-05-15 22:30:26 +0100 |
commit | 852c7ad1af2e3283425dccd79b0923b7df12a388 (patch) | |
tree | f97e6498f87380091bf6848d06482bf12c258b63 /Makefile | |
parent | 44dedb90f005bb0de9bddbd592a5c78f28bc67d1 (diff) | |
download | ihe-852c7ad1af2e3283425dccd79b0923b7df12a388.tar.gz ihe-852c7ad1af2e3283425dccd79b0923b7df12a388.zip |
Moved to new cmd.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,17 +1,21 @@ PROJECT=ihe CC=gcc -CFLAGS= +CFLAGS=-I./ SOURCES=buf.c core.c +SOURCES+=$(wildcard cmd/*.c) OBJECTS=$(SOURCES:.c=.o) LIB_OBJECTS=libcmd/libcmd.o libterm/libterm.o all: clean $(OBJECTS) $(PROJECT) $(PROJECT): - $(CC) $(CFLAGS) $(OBJECTS) $(LIB_OBJECTS) $(PROJECT).c -o $(PROJECT) + $(CC) -c $(PROJECT).c + ld -r $(OBJECTS) $(PROJECT).o -o $(PROJECT)_.o + + $(CC) $(CFLAGS) $(PROJECT)_.o $(LIB_OBJECTS) -o $(PROJECT) %.o: %.c - $(CC) $(CFLAGS) -c $< + $(CC) $(CFLAGS) -c $< -o $@ clean: rm -f $(PROJECT) |