makefiles and versioning update complete

This commit is contained in:
Dhanya Maliakal
2017-06-29 17:10:10 +02:00
parent 1a74ceca3e
commit b05e9c194a
14 changed files with 135 additions and 95 deletions

View File

@ -12,13 +12,14 @@ SRC_CLNT = communication_funcs.c slsDetectorServer.c slsDetectorServer_funcs.c
OBJS = $(SRC_CLNT:.c=.o)
all: clean updateVersion $(PROGS) #hv9m_blackfin_server
all: clean $(PROGS) #hv9m_blackfin_server
boot: $(OBJS)
$(PROGS):
echo $(OBJS)
$(PROGS): $(OBJS)
# echo $(OBJS)
@echo `tput setaf 6; ./updateGitVersion.sh; tput sgr0;`
mkdir -p $(DESTDIR)
$(CC) -o $@ $(SRC_CLNT) $(CFLAGS) $(LDLIBS)
mv $(PROGS) $(DESTDIR)
@ -32,6 +33,4 @@ hv9m_blackfin_server:9mhvserial_bf.c
clean:
rm -rf $(DESTDIR)/$(PROGS) *.o $(DESTDIR)/hv9m_blackfin_server
updateVersion:
./updateGitVersion.sh