some fixes

This commit is contained in:
eddyem
2017-03-23 10:35:39 +03:00
parent b7654b2569
commit 91f3b192cd
9 changed files with 1971 additions and 446 deletions

View File

@@ -11,24 +11,21 @@ OBJS := $(SRCS:%.c=%.o)
CC = gcc
CPP = g++
all : sbig340 daemon client
all : sbig340_standalone sbig340_daemon sbig340_client
debayer.o : debayer.cpp
@echo -e "\t\tG++ debayer"
$(CPP) $(CFLAGS) $(DEFINES) debayer.cpp -c
sbig340 : $(SRCS) debayer.o
@echo -e "\t\tBuild sbig340"
sbig340_standalone : $(SRCS) debayer.o
@echo -e "\t\tBuild standalone"
$(CC) $(CFLAGS) -std=gnu99 $(DEFINES) $(LDFLAGS) $(LDIMG) $(SRCS) debayer.o -o $@
# $(CC) -c $(CFLAGS) -std=gnu99 $(DEFINES) $(SRCS)
# $(CPP) $(LDFLAGS) $(OBJS) debayer.o -o $@
daemon : $(SRCS)
sbig340_daemon : $(SRCS)
@echo -e "\t\tBuild daemon"
$(CC) -DDAEMON $(CFLAGS) -std=gnu99 $(DEFINES) $(LDFLAGS) $(SRCS) -o $@
client : $(SRCS) debayer.o
sbig340_client : $(SRCS) debayer.o
@echo -e "\t\tBuild client"
$(CC) -DCLIENT $(CFLAGS) -std=gnu99 $(DEFINES) $(LDFLAGS) $(LDIMG) $(SRCS) debayer.o -o $@
@@ -38,9 +35,9 @@ clean:
xclean: clean
@echo -e "\t\tRM binaries"
@rm -f sbig340 daemon client
@rm -f sbig340_standalone sbig340_daemon sbig340_client
gentags:
CFLAGS="$(CFLAGS) $(DEFINES)" geany -g $(PROGRAM).c.tags *[hc] *.cpp 2>/dev/null
CFLAGS="$(CFLAGS) $(DEFINES)" geany -g sbig340.c.tags *.[hc] *.cpp 2>/dev/null
.PHONY: gentags clean xclean