Skip to content

Commit

Permalink
ztex/Makefile.in: Correct linefeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
magnumripper committed Dec 3, 2024
1 parent 364b1ca commit 40752fe
Showing 1 changed file with 79 additions and 79 deletions.
158 changes: 79 additions & 79 deletions src/ztex/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
# This software is Copyright (c) 2016 Denis Burykin
# [denis_burykin yahoo com], [denis-burykin2014 yandex ru]
# and it is hereby released to the general public under the following terms:
# Redistribution and use in source and binary forms, with or without
# modification, are permitted.

CC = gcc
CFLAGS = -c -Wall -O2 -g
CFLAGS_TEST = -O
#LD = ld
RM = /bin/rm -f
EXTRA_LIBS = -lusb-1.0

SUBDIRS = pkt_comm

TEST_OBJS = device.o inouttraffic.o ztex.o ztex_scan.o ztex_sn.o

OBJS = $(TEST_OBJS) device_format.o jtr_device.o jtr_mask.o task.o

TEST_EXTRA_OBJS = pkt_comm/pkt_comm.o pkt_comm/word_gen.o pkt_comm/word_list.o

EXTRA_OBJS = pkt_comm/*.o

#TESTS = simple_test test pkt_test


default: $(SUBDIRS) $(OBJS)
all: $(SUBDIRS) $(OBJS)

.PHONY: subdirs $(SUBDIRS)

$(SUBDIRS):
$(MAKE) -C $@ all

device.o: device.c device.h
$(CC) $(CFLAGS) device.c

inouttraffic.o: inouttraffic.c inouttraffic.h
$(CC) $(CFLAGS) inouttraffic.c

ztex.o: ztex.c ztex.h
$(CC) $(CFLAGS) ztex.c

ztex_scan.o: ztex_scan.c ztex_scan.h
$(CC) $(CFLAGS) ztex_scan.c

ztex_sn.o: ztex_sn.c ztex_sn.h
$(CC) $(CFLAGS) ztex_sn.c

device_format.o: device_format.c device_format.h
$(CC) $(CFLAGS) device_format.c

jtr_device.o: jtr_device.c jtr_device.h
$(CC) $(CFLAGS) jtr_device.c

jtr_mask.o: jtr_mask.c jtr_mask.h
$(CC) $(CFLAGS) jtr_mask.c

task.o: task.c task.h
$(CC) $(CFLAGS) task.c



simple_test: simple_test.c $(SUBDIRS) $(TEST_OBJS)
$(CC) $(CFLAGS_TEST) simple_test.c $(TEST_OBJS) $(TEST_EXTRA_OBJS) $(EXTRA_LIBS) -o simple_test

test: test.c $(SUBDIRS) $(TEST_OBJS)
$(CC) $(CFLAGS_TEST) test.c $(TEST_OBJS) $(TEST_EXTRA_OBJS) $(EXTRA_LIBS) -o test

pkt_test: pkt_test.c $(SUBDIRS) $(TEST_OBJS)
$(CC) $(CFLAGS_TEST) pkt_test.c $(TEST_OBJS) $(TEST_EXTRA_OBJS) $(EXTRA_LIBS) -o pkt_test


clean:
find . -name \*.o -exec rm -f "{}" \;
rm -f *.exe simple_test test pkt_test

distclean: clean
$(RM) Makefile
# This software is Copyright (c) 2016 Denis Burykin
# [denis_burykin yahoo com], [denis-burykin2014 yandex ru]
# and it is hereby released to the general public under the following terms:
# Redistribution and use in source and binary forms, with or without
# modification, are permitted.

CC = gcc
CFLAGS = -c -Wall -O2 -g
CFLAGS_TEST = -O
#LD = ld
RM = /bin/rm -f
EXTRA_LIBS = -lusb-1.0

SUBDIRS = pkt_comm

TEST_OBJS = device.o inouttraffic.o ztex.o ztex_scan.o ztex_sn.o

OBJS = $(TEST_OBJS) device_format.o jtr_device.o jtr_mask.o task.o

TEST_EXTRA_OBJS = pkt_comm/pkt_comm.o pkt_comm/word_gen.o pkt_comm/word_list.o

EXTRA_OBJS = pkt_comm/*.o

#TESTS = simple_test test pkt_test


default: $(SUBDIRS) $(OBJS)
all: $(SUBDIRS) $(OBJS)

.PHONY: subdirs $(SUBDIRS)

$(SUBDIRS):
$(MAKE) -C $@ all

device.o: device.c device.h
$(CC) $(CFLAGS) device.c

inouttraffic.o: inouttraffic.c inouttraffic.h
$(CC) $(CFLAGS) inouttraffic.c

ztex.o: ztex.c ztex.h
$(CC) $(CFLAGS) ztex.c

ztex_scan.o: ztex_scan.c ztex_scan.h
$(CC) $(CFLAGS) ztex_scan.c

ztex_sn.o: ztex_sn.c ztex_sn.h
$(CC) $(CFLAGS) ztex_sn.c

device_format.o: device_format.c device_format.h
$(CC) $(CFLAGS) device_format.c

jtr_device.o: jtr_device.c jtr_device.h
$(CC) $(CFLAGS) jtr_device.c

jtr_mask.o: jtr_mask.c jtr_mask.h
$(CC) $(CFLAGS) jtr_mask.c

task.o: task.c task.h
$(CC) $(CFLAGS) task.c



simple_test: simple_test.c $(SUBDIRS) $(TEST_OBJS)
$(CC) $(CFLAGS_TEST) simple_test.c $(TEST_OBJS) $(TEST_EXTRA_OBJS) $(EXTRA_LIBS) -o simple_test

test: test.c $(SUBDIRS) $(TEST_OBJS)
$(CC) $(CFLAGS_TEST) test.c $(TEST_OBJS) $(TEST_EXTRA_OBJS) $(EXTRA_LIBS) -o test

pkt_test: pkt_test.c $(SUBDIRS) $(TEST_OBJS)
$(CC) $(CFLAGS_TEST) pkt_test.c $(TEST_OBJS) $(TEST_EXTRA_OBJS) $(EXTRA_LIBS) -o pkt_test


clean:
find . -name \*.o -exec rm -f "{}" \;
rm -f *.exe simple_test test pkt_test

distclean: clean
$(RM) Makefile

0 comments on commit 40752fe

Please sign in to comment.