Skip to content

Commit

Permalink
tools/Makefile: moved "all" as a first rule
Browse files Browse the repository at this point in the history
to rum `make all` as a default target (without arguments to make)
  • Loading branch information
MartinPulec committed Mar 22, 2024
1 parent dd8b8c5 commit c7bc796
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ MKDIR_P = mkdir -p
vpath %.c $(SRCDIR) $(SRCDIR)/tools
vpath %.cpp $(SRCDIR) $(SRCDIR)/tools

TARGETS=astat_lib astat_test convert decklink_temperature uyvy2yuv422p thumbnailgen

all: $(TARGETS)

%.o : %.c
$(MKDIR_P) $(dir $@)
$(CC) $(COMMON_FLAGS) -c $< -o $@
Expand Down Expand Up @@ -35,10 +39,5 @@ uyvy2yuv422p: uyvy2yuv422p.c
thumbnailgen: thumbnailgen.o ipc_frame.o ipc_frame_unix.o
$(CXX) $^ -o $@ -ljpeg


TARGETS=astat_lib astat_test convert decklink_temperature uyvy2yuv422p thumbnailgen

all: $(TARGETS)

clean:
$(RM) $(TARGETS) *o

0 comments on commit c7bc796

Please sign in to comment.