Loading Makefile +10 −0 Original line number Original line Diff line number Diff line Loading @@ -9,11 +9,21 @@ OBJS = $(SRC:.c=.o) CFLAGS += -Wall -I$(STAGING_DIR_HOST)/usr/include-uapi/elphel CFLAGS += -Wall -I$(STAGING_DIR_HOST)/usr/include-uapi/elphel LDLIBS += -logg -pthread -lm LDLIBS += -logg -pthread -lm SYSCONFDIR = /etc/ BINDIR = /usr/bin/ WWW_PAGES = /www/pages all: $(PROGS) all: $(PROGS) $(PROGS): $(OBJS) $(PROGS): $(OBJS) $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ install: install -d $(DESTDIR)$(BINDIR) install -m 0755 -t $(DESTDIR)$(BINDIR) $(PROGS) install -d $(DESTDIR)$(SYSCONFDIR) install -m 0644 -t $(DESTDIR)$(SYSCONFDIR) $(CONFIGS) clean: clean: rm -rf $(PROGS) *.o *~ rm -rf $(PROGS) *.o *~ #TODO: implement automatic dependencies! #TODO: implement automatic dependencies! Loading Loading
Makefile +10 −0 Original line number Original line Diff line number Diff line Loading @@ -9,11 +9,21 @@ OBJS = $(SRC:.c=.o) CFLAGS += -Wall -I$(STAGING_DIR_HOST)/usr/include-uapi/elphel CFLAGS += -Wall -I$(STAGING_DIR_HOST)/usr/include-uapi/elphel LDLIBS += -logg -pthread -lm LDLIBS += -logg -pthread -lm SYSCONFDIR = /etc/ BINDIR = /usr/bin/ WWW_PAGES = /www/pages all: $(PROGS) all: $(PROGS) $(PROGS): $(OBJS) $(PROGS): $(OBJS) $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ install: install -d $(DESTDIR)$(BINDIR) install -m 0755 -t $(DESTDIR)$(BINDIR) $(PROGS) install -d $(DESTDIR)$(SYSCONFDIR) install -m 0644 -t $(DESTDIR)$(SYSCONFDIR) $(CONFIGS) clean: clean: rm -rf $(PROGS) *.o *~ rm -rf $(PROGS) *.o *~ #TODO: implement automatic dependencies! #TODO: implement automatic dependencies! Loading