Browse Source

Move source into src/

tags/v1.8.0
Xerbo 4 years ago
parent
commit
b8671a325f
15 changed files with 13 additions and 12 deletions
  1. +3
    -2
      CMakeLists.txt
  2. +10
    -10
      Makefile
  3. +0
    -0
      src/color.c
  4. +0
    -0
      src/common.h
  5. +0
    -0
      src/dsp.c
  6. +0
    -0
      src/filter.c
  7. +0
    -0
      src/filter.h
  8. +0
    -0
      src/filtercoeff.h
  9. +0
    -0
      src/image.c
  10. +0
    -0
      src/main.c
  11. +0
    -0
      src/median.c
  12. +0
    -0
      src/offsets.h
  13. +0
    -0
      src/pngio.c
  14. +0
    -0
      src/reg.c
  15. +0
    -0
      src/satcal.h

+ 3
- 2
CMakeLists.txt View File

@@ -3,7 +3,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")


project (aptdec) project (aptdec)


add_executable(aptdec main.c color.c dsp.c filter.c image.c median.c pngio.c reg.c)
file(GLOB_RECURSE C_SOURCE_FILES src/*.c)
add_executable(aptdec ${C_SOURCE_FILES})


# Math # Math
target_link_libraries(aptdec PRIVATE m) target_link_libraries(aptdec PRIVATE m)
@@ -18,4 +19,4 @@ target_link_libraries(aptdec PRIVATE PNG::PNG)


# SndFile # SndFile
find_package(LibSndFile REQUIRED) find_package(LibSndFile REQUIRED)
target_link_libraries(aptdec PRIVATE ${LIBSNDFILE_LIBRARY})
target_link_libraries(aptdec PRIVATE ${LIBSNDFILE_LIBRARY})

+ 10
- 10
Makefile View File

@@ -2,22 +2,22 @@ CC = gcc
BIN = /usr/bin BIN = /usr/bin
INCLUDES = -I. INCLUDES = -I.
CFLAGS = -O3 -g -Wall -Wextra -Wno-missing-field-initializers $(INCLUDES) CFLAGS = -O3 -g -Wall -Wextra -Wno-missing-field-initializers $(INCLUDES)
OBJS = main.o image.o dsp.o filter.o reg.o pngio.o median.o color.o
OBJS = src/main.o src/image.o src/dsp.o src/filter.o src/reg.o src/pngio.o src/median.o src/color.o


aptdec: $(OBJS) aptdec: $(OBJS)
$(CC) -o $@ $(OBJS) -lm -lsndfile -lpng $(CC) -o $@ $(OBJS) -lm -lsndfile -lpng


reg.o: reg.c
color.o: color.c
main.o: main.c
media.o: median.c
dsp.o: dsp.c
filter.o: filter.c
image.o: image.c
pngio.o: pngio.c
reg.o: src/reg.c
color.o: src/color.c
main.o: src/main.c
media.o: src/median.c
dsp.o: src/dsp.c
filter.o: src/filter.c
image.o: src/image.c
pngio.o: src/pngio.c


clean: clean:
rm -f *.o aptdec
rm -f src/*.o aptdec


install: install:
install -m 755 aptdec $(BIN) install -m 755 aptdec $(BIN)


color.c → src/color.c View File


common.h → src/common.h View File


dsp.c → src/dsp.c View File


filter.c → src/filter.c View File


filter.h → src/filter.h View File


filtercoeff.h → src/filtercoeff.h View File


image.c → src/image.c View File


main.c → src/main.c View File


median.c → src/median.c View File


offsets.h → src/offsets.h View File


pngio.c → src/pngio.c View File


reg.c → src/reg.c View File


satcal.h → src/satcal.h View File


Loading…
Cancel
Save