Skip to content

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
justanhduc committed Oct 13, 2022
1 parent 109e7c2 commit 17d6895
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ OBJECTS=main.o \
print.o \
info.o \
env.o \
tail.o
tail.o \
cjson/cJSON.o
TARGET=ts
INSTALL=install -c

Expand Down Expand Up @@ -56,6 +57,7 @@ list.o: list.c main.h
tail.o: tail.c main.h
gpu.o: gpu.c main.h
$(CC) $(CFLAGS) $(CPPFLAGS) -L$(CUDA_HOME)/lib64 -I$(CUDA_HOME)/include -lpthread -c $< -o $@
cjson/cJSON.o: cjson/cJSON.c cjson/cJSON.h

cpu: CFLAGS+=-DCPU

Expand All @@ -68,7 +70,7 @@ ifeq ($(GIT_REPO), true)
endif

clean:
rm -f *.o $(TARGET) makeman ts.1
rm -f *.o cjson/*.o $(TARGET) makeman ts.1

install: $(TARGET)
$(INSTALL) -d $(PREFIX)/bin
Expand Down

0 comments on commit 17d6895

Please sign in to comment.